-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsettings.ini.default
202 lines (183 loc) · 7.74 KB
/
settings.ini.default
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
;------------------------------------------------------------------------------
; Default Settings
;------------------
; default_api_key : OpenAI API key - (https://platform.openai.com/account)
;------------------------------------------------------------------------------
[settings]
default_api_key=
;------------------------------------------------------------------------------
; Hotkeys
;---------
; ^ = Ctrl, ! = Alt, + = Shift, # = Win
; See: (https://autohotkey.com/docs/Hotkeys.htm)
;
; hotkey_1 : (Required) The hotkey to select the current line and auto-run
; hotkey_1_prompt : (Required) The prompt to use for the hotkey_1
; hotkey_2 : (Required) The hotkey to select the current line and display
; the prompt menu
; menu_hotkey : (Required) The hotkey to display the prompt menu
;------------------------------------------------------------------------------
hotkey_1 = ^+j
hotkey_1_prompt = prompt_spelling
hotkey_2 = ^+k
menu_hotkey = ^!+k
;------------------------------------------------------------------------------
; Misc. Settings
;----------------
; default_mode : (Required) The default mode to use for the prompt
; reload_on_change : (Optional:True/False:Defult True) If true, the script will
; reload the settings.ini file if it is changed
; cursor_wait_file : (Optional) The mouse cursor when waiting for response
; debug : (Optional) Enable writting debug logs to ./debug.log file
; timeout : (Optional) The number of seconds to wait for a response
;------------------------------------------------------------------------------
default_mode = mode_chat_completion
reload_on_change = false
timeout = 120
;cursor_wait_file = wait-1.ani
;debug=true
;------------------------------------------------------------------------------
; Popup Menu
;------------
; Prompts to display in listed order in the popup menu
; Values are the prompt name (see prompts section)
; First 10 items are 1-0, then a-z, unless menu_text contains a & character to
; indicate a hotkey
; - = separator
;------------------------------------------------------------------------------
[popup_menu]
prompt_spelling
prompt_writting
prompt_shorter
prompt_longer
prompt_tone_professional
prompt_simplify
-
prompt_proof
prompt_summarize
prompt_explain
prompt_items
-
prompt_code_optimize
-
prompt_continue
;------------------------------------------------------------------------------
; Prompts
;---------
; prompt : (Required) The main prompt to prepend before to
; the user input
; mode : (Required) The mode to be used for the prompt
; - see modes section
; menu_text : (Optional) The text to be displayed in the popup menu
; prompt_system : (Optional) The system prompt send of system input
; for chat completion mode
; prompt_end : (Optional) Text to append to the end of user input
; replace_selected : (Optional:True/False:Defult True) If true, the response
; will be appended to the user input
; response_start : (Optional:Default "") The text to append between
; the user input and the response
; response_end : (Optional:Default "") The text to append after the
; response
; ~mode overrides~ : (Optional) Any mode setting can be overriden for a
; specific prompt
; --
; Note: String values must be enclosed in double quotes and can use \n for
; new lines
;------------------------------------------------------------------------------
[prompt_spelling]
prompt_system="Correct the spelling and grammar of the given text using US English conventions. Provide only the revised text with no additional commentary or explanations.\n\n# Output Format\nThe output should be the corrected version of the text, formatted as a short sentence or paragraph, as appropriate to the original input length.\n# Notes\n- Ensure that all spelling and grammatical errors are corrected.\n- Maintain the original meaning and intent of the text.\n- Do not include explanations or notes, only the final corrected version."
prompt="Correct the spelling (American English) and grammar of the following.\nInput: the caat in the hat\nThe cat in the hat.\nInput: The dog is black and white.\nOutput: The dog is black and white.\nInput: "
prompt_end="\nOutput: "
menu_text="Fix spelling && grammar"
temperature=0
[prompt_writting]
prompt="Improve the writting for clarity and conciseness and correct the spelling (American English) and grammar of the following:\n\n"
menu_text="Rewrite for clarity"
[prompt_shorter]
prompt="Make the following shorter:\n\n"
menu_text="Make shorter"
[prompt_longer]
prompt="Make the following longer:\n\n"
menu_text="Make longer"
[prompt_tone_professional]
prompt="Make the following more professional:\n\n"
menu_text="Change Tone - Professional"
[prompt_simplify]
prompt="Simplify the following:\n\n"
menu_text="Simplify language"
[prompt_proof]
prompt_system="I want you act as a English proofreader. I will provide you texts and I would like you to review them for any spelling, grammar, or punctuation errors. Once you have finished reviewing the text, provide me with a very detailed bullet list of suggestions and modifications to make and reasons why."
prompt="My text is the following: "
menu_text="Proofread"
replace_selected=False
response_start="\n\n"
temperature=0
[prompt_summarize]
prompt="Summarize the following:\n\n"
menu_text="Summarize"
replace_selected=False
response_start="\n"
temperature=0
[prompt_explain]
prompt="Explain the following:\n\n"
menu_text="Explain this"
replace_selected=False
response_start="\n"
temperature=0
[prompt_items]
prompt="Summarize as a statement and identify any action items as a bullet list:\n\n"
menu_text="Find action items"
replace_selected=False
response_start="\n"
temperature=0
[prompt_code_optimize]
prompt_system="You are an assistant to a software engineer. You will be given a code snippet and you will be asked to optimize it for time and space complexity."
prompt="Improve and explain how to optimize the following code:\n\n"
prompt_end=""
menu_text="Code - Optimize"
replace_selected=False
response_start="\n\n>>>>\n"
response_end="\n<<<<\n"
temperature=0
[prompt_continue]
prompt=""
replace_selected=False
menu_text="Space& - Continue writting"
response_start=" "
;------------------------------------------------------------------------------
; Modes
;-------
; [mode_<name>] : (Required) The name of the mode
; endpoint : (Required) The OpenAI API endpoint
; model : (Required) The OpenAI model to use
; max_tokens : (Optional) The maximum number of tokens to generate
; temperature : (Optional) The temperature of the model
; top_p : (Optional) The top_p of the model
; frequency_penalty : (Optional) The frequency_penalty of the model
; presence_penalty : (Optional) The presence_penalty of the model
; best_of : (Optional) The best_of of the model
; stop : (Optional) The stop of the model
; --
; Note: Optional values vary depending on the mode and model - see OpenAI API
;------------------------------------------------------------------------------
; Default mode settings
[mode_chat_completion]
endpoint=https://api.openai.com/v1/chat/completions
model="gpt-4o-mini"
max_tokens=3000
temperature=0.2
top_p=1
frequency_penalty=0.0
presence_penalty=0.0
; Azure mode settings - See: https://docs.microsoft.com/en-us/azure/openai/quickstart
[mode_chat_completion_azure]
endpoint=https://****.openai.azure.com/openai/deployments/gpt-35-turbo/chat/completions?api-version=2023-03-15-preview
api_key=***
model="gpt-3.5-turbo"
max_tokens=2000
temperature=0.2
top_p=1
best_of=1
frequency_penalty=0.0
presence_penalty=0.0
stop=["###"]