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
When using vertex ai models, the interpreter does not format the code appropriately and leaves the trailing ``` which causes syntax errors.
Reproduce
Run the terminal interpreter with any vertex AI model, for example
interpreter --model codechat-bison@001
Then prompt the model to write code to execute a task.
Use python to Open Chrome and go to YouTube.
Sure, I can do that. Here is a plan:
1 Open Chrome 2
. Go to YouTube
Here is the code:
/```
# Open Chrome
computer.browser.open("https://www.youtube.com")
# Go to YouTube
computer.browser.find_element_by_id("search_form").click()
computer.browser.find_element_by_id("search_input").send_keys("cats")
computer.browser.find_element_by_id("search_button").click
Would you like to run this code? (y/n)
Expected behavior
The agent's code should be formatted without any "```" characters.
Describe the bug
When using vertex ai models, the interpreter does not format the code appropriately and leaves the trailing ``` which causes syntax errors.
Reproduce
Run the terminal interpreter with any vertex AI model, for example
Then prompt the model to write code to execute a task.
Expected behavior
The agent's code should be formatted without any "```" characters.
Open Chrome
computer.browser.open("https://www.youtube.com")
Screenshots
Open Interpreter version
0.2.4
Python version
3.10
Operating System name and version
MacOs 14.4.1
Additional context
I tried this with several other vertex ai models, seems to be a similar problem for the others.
The text was updated successfully, but these errors were encountered: