Skip to content

Commit cc6291f

Browse files
committed
Updated profiles documentation
1 parent 90b19b5 commit cc6291f

File tree

1 file changed

+47
-17
lines changed

1 file changed

+47
-17
lines changed

docs/settings/all-settings.mdx

Lines changed: 47 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ interpreter.llm.model = "gpt-3.5-turbo"
4444
```
4545

4646
```yaml Profile
47-
llm.model: gpt-3.5-turbo
47+
llm:
48+
model: gpt-3.5-turbo
4849
```
4950
5051
</CodeGroup>
@@ -64,7 +65,8 @@ interpreter.llm.temperature = 0.7
6465
```
6566

6667
```yaml Profile
67-
llm.temperature: 0.7
68+
llm:
69+
temperature: 0.7
6870
```
6971
7072
</CodeGroup>
@@ -84,7 +86,8 @@ interpreter.llm.context_window = 16000
8486
```
8587

8688
```yaml Profile
87-
llm.context_window: 16000
89+
llm:
90+
context_window: 16000
8891
```
8992
9093
</CodeGroup>
@@ -104,7 +107,8 @@ interpreter.llm.max_tokens = 100
104107
```
105108

106109
```yaml Profile
107-
llm.max_tokens: 100
110+
llm:
111+
max_tokens: 100
108112
```
109113
110114
</CodeGroup>
@@ -124,7 +128,8 @@ interpreter.llm.max_output = 1000
124128
```
125129

126130
```yaml Profile
127-
llm.max_output: 1000
131+
llm:
132+
max_output: 1000
128133
```
129134
130135
</CodeGroup>
@@ -144,7 +149,8 @@ interpreter.llm.api_base = "https://api.example.com"
144149
```
145150

146151
```yaml Profile
147-
llm.api_base: https://api.example.com
152+
llm:
153+
api_base: https://api.example.com
148154
```
149155
150156
</CodeGroup>
@@ -164,7 +170,8 @@ interpreter.llm.api_key = "your_api_key_here"
164170
```
165171

166172
```yaml Profile
167-
llm.api_key: your_api_key_here
173+
llm:
174+
api_key: your_api_key_here
168175
```
169176
170177
</CodeGroup>
@@ -184,7 +191,8 @@ interpreter.llm.api_version = '2.0.2'
184191
```
185192

186193
```yaml Profile
187-
llm.api_version: 2.0.2
194+
llm:
195+
api_version: 2.0.2
188196
```
189197
190198
</CodeGroup>
@@ -200,11 +208,12 @@ interpreter --llm_supports_functions
200208
```
201209

202210
```python Python
203-
interpreter.llm.llm_supports_functions = True
211+
interpreter.llm.supports_functions = True
204212
```
205213

206214
```yaml Profile
207-
llm.llm_supports_functions: true
215+
llm:
216+
supports_functions: true
208217
```
209218
210219
</CodeGroup>
@@ -220,11 +229,12 @@ interpreter --no-llm_supports_functions
220229
```
221230

222231
```python Python
223-
interpreter.llm.llm_supports_functions = False
232+
interpreter.llm.supports_functions = False
224233
```
225234

226235
```yaml Profile
227-
llm.llm_supports_functions: false
236+
llm:
237+
supports_functions: false
228238
```
229239
230240
</CodeGroup>
@@ -240,11 +250,12 @@ interpreter --llm_supports_vision
240250
```
241251

242252
```python Python
243-
interpreter.llm.llm_supports_vision = True
253+
interpreter.llm.supports_vision = True
244254
```
245255

246256
```yaml Profile
247-
llm.llm_supports_vision: true
257+
llm:
258+
supports_vision: true
248259
```
249260

250261
</CodeGroup>
@@ -261,13 +272,32 @@ interpreter --vision
261272
```
262273

263274
```python Python
264-
interpreter.vision = True
265275
interpreter.llm.model = "gpt-4-vision-preview" # Any vision supporting model
276+
interpreter.llm.supports_vision = True
277+
interpreter.llm.supports_functions = False # If model doesn't support functions, which is the case with gpt-4-vision.
278+
279+
interpreter.custom_instructions = """The user will show you an image of the code you write. You can view images directly.
280+
For HTML: This will be run STATELESSLY. You may NEVER write '<!-- previous code here... --!>' or `<!-- header will go here -->` or anything like that. It is CRITICAL TO NEVER WRITE PLACEHOLDERS. Placeholders will BREAK it. You must write the FULL HTML CODE EVERY TIME. Therefore you cannot write HTML piecemeal—write all the HTML, CSS, and possibly Javascript **in one step, in one code block**. The user will help you review it visually.
281+
If the user submits a filepath, you will also see the image. The filepath and user image will both be in the user's message.
282+
If you use `plt.show()`, the resulting image will be sent to you. However, if you use `PIL.Image.show()`, the resulting image will NOT be sent to you."""
266283
```
267284

268285
```yaml Profile
269-
vision: true
270-
llm.model: "gpt-4-vision-preview" # Any vision supporting model
286+
force_task_completion: True
287+
288+
llm:
289+
model: "gpt-4-vision-preview"
290+
temperature: 0
291+
supports_vision: True
292+
supports_functions: False
293+
context_window: 110000
294+
max_tokens: 4096
295+
custom_instructions: >
296+
The user will show you an image of the code you write. You can view images directly.
297+
For HTML: This will be run STATELESSLY. You may NEVER write '<!-- previous code here... --!>' or `<!-- header will go here -->` or anything like that. It is CRITICAL TO NEVER WRITE PLACEHOLDERS. Placeholders will BREAK it. You must write the FULL HTML CODE EVERY TIME. Therefore you cannot write HTML piecemeal—write all the HTML, CSS, and possibly Javascript **in one step, in one code block**. The user will help you review it visually.
298+
If the user submits a filepath, you will also see the image. The filepath and user image will both be in the user's message.
299+
If you use `plt.show()`, the resulting image will be sent to you. However, if you use `PIL.Image.show()`, the resulting image will NOT be sent to you.
300+
271301
```
272302
273303
</CodeGroup>

0 commit comments

Comments
 (0)