open-interpreter
open-interpreter copied to clipboard
Generated code is trimmed when using "-m gemini/gemini-pro"
Describe the bug
Please note that I'm using the gemini/gemini-pro
implementation (which uses Google AI Studio / free) instead of the gemini-pro
implementation (which uses Google Vertex AI / trial).
Command
docker run --rm -it --name interpreter-instance openinterpreter interpreter -m gemini/gemini-pro
Output
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
▌ Model set to gemini/gemini-pro
Open Interpreter will require approval before running code.
Use interpreter -y to bypass this.
Press CTRL-C to exit.
How many files are on my desktop?
We were unable to determine the context window of this model. Defaulting to 3000.
If your model can handle more, run interpreter --context_window {token limit} --max_tokens {max tokens per response}.
Continuing...
import os
num_files = len(os.listdir('/
Would you like to run this code? (y/n)
y
import os num_files = len(os.listdir('/
Cell In[2], line 3 num_files = len(os.listdir('/ ^ SyntaxError: unterminated string literal (detected at line 3)
Reproduce
Run:
docker run --rm -it --name interpreter-instance openinterpreter interpreter -m gemini/gemini-pro
Ask:
> How many files are on my desktop?
Expected behavior
Generated code should work.
Screenshots
Open Interpreter version
0.2.0
Python version
3.11
Operating System name and version
OL8