#220·opencode

无法处理事件: POST "https://api.groq.com/OpenAI/v1/chat/completions": 400 请求错误 {"message":"'reasoning_effort' : 值不是允许的值 ['none','default']","type":"invalid_request_error"}

作者: samkohli创建于 2025年6月10日更新于 2025年7月29日

pencode -p "解释 Go 中上下文的使用" 2025/06/09 22:09:44 WARN FZF not found in $PATH. Some features might be limited or slower. 错误: 代理处理失败: 无法处理事件: POST "https://api.groq.com/OpenAI/v1/chat/completions": 400 Bad Request {"message":"'reasoning_effort' : value is not one of the allowed values ['none','default']","type":"invalid_request_error"} 使用方法: opencode [flags] 示例: # 在交互式模式下运行 opencode # 以调试日志模式运行 opencode -d # 在特定目录中以调试日志模式运行 opencode -d -c /path/to/project # 打印版本 opencode -v # 在非交互式模式下运行一个单一提示 opencode -p "解释 Go 中上下文的使用" # 在非交互式模式下运行一个单一提示,输出格式为 JSON opencode -p "解释 Go 中上下文的使用" -f json 标志: -c, --cwd string 当前工作目录 -d, --debug 调试 -h, --help 帮助 -f, --output-format string 非交互模式的输出格式(文本,JSON)(默认为"text") -p, --prompt string 非交互模式下的提示 -q, --quiet 隐藏非交互模式中的旋转进度条 -v, --version 版本

内容来源: opencode-ai/opencode