You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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."""
266
283
```
267
284
268
285
```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.
0 commit comments