安装完成,查看命令是否可用,运行interpreter -h输出如下:
$ interpreter -h
用法: interpreter [选项]
Open Interpreter(开放解释器)
选项:
-h, --help 显示帮助信息并退出
-p PROFILE, --profile PROFILE
配置文件名。运行`--profiles`可打开配置目录
-ci CUSTOM_INSTRUCTIONS, --custom_instructions CUSTOM_INSTRUCTIONS
语言模型的自定义指令。会追加到系统消息中
-sm SYSTEM_MESSAGE, --system_message SYSTEM_MESSAGE
(不建议修改)语言模型的基础提示词
-y, --auto_run 自动运行生成的代码
-nhl, --no_highlight_active_line
关闭代码块中当前行的语法高亮
-v, --verbose 打印详细日志
-m MODEL, --model MODEL
使用的语言模型
-t TEMPERATURE, --temperature TEMPERATURE
语言模型的可选温度参数
-lsv, --llm_supports_vision, --no-llm_supports_vision
告知OI该模型支持视觉输入
-lsf, --llm_supports_functions, --no-llm_supports_functions
告知OI该模型支持OpenAI风格的功能调用
-cw CONTEXT_WINDOW, --context_window CONTEXT_WINDOW
语言模型的可选上下文窗口大小
-x MAX_TOKENS, --max_tokens MAX_TOKENS
语言模型的可选最大token数
-b MAX_BUDGET, --max_budget MAX_BUDGET
可选设置LLM调用的最大预算(美元)
-ab API_BASE, --api_base API_BASE
可选设置LLM调用的API基础URL(将覆盖环境变量)
-ak API_KEY, --api_key API_KEY
可选设置LLM调用的API密钥(将覆盖环境变量)
-av API_VERSION, --api_version API_VERSION
可选设置LLM调用的API版本(将覆盖环境变量)
-xo MAX_OUTPUT, --max_output MAX_OUTPUT
代码输出的可选最大字符数
--loop 以循环模式运行OI,需确认任务完成/失败
-dt, --disable_telemetry
禁用基础匿名使用统计发送
-o, --offline 关闭所有在线功能(若模型是本地部署的则除外)
-sp, --speak_messages
(仅Mac,实验性)使用applescript `say`命令朗读消息
-safe {off,ask,auto}, --safe_mode {off,ask,auto}
可选启用安全机制(如代码扫描),有效值为off/ask/auto
-debug, --debug Open Interpreter开发者的调试模式
-f, --fast 运行`interpreter --model gpt-4o-mini`并要求OI极度简洁(`interpreter --profile fast`的快捷方式)
-ml, --multi_line 启用以```包裹的多行输入
-l, --local 设置本地模型(`interpreter --profile local`的快捷方式)
--codestral 快捷方式:`interpreter --profile codestral`
--assistant 快捷方式:`interpreter --profile assistant.py`
--llama3 快捷方式:`interpreter --profile llama3`
--groq 快捷方式:`interpreter --profile groq`
-vi, --vision 实验性使用视觉功能(`interpreter --profile vision`的快捷方式)
-os, --os 实验性允许控制鼠标和键盘(`interpreter --profile os`的快捷方式)
--reset_profile [RESET_PROFILE]
重置配置文件。不带参数运行时重置所有默认配置
--profiles 打开配置目录
--local_models 打开本地模型目录
--conversations 列出可恢复的对话记录
--server 以服务器模式启动
--version 获取Open Interpreter版本号
--contribute_conversation
允许使用当前对话训练开源LLM
-pl, --plain 设置纯文本输出模式
-s, --stdin 在stdin模式下运行OI