Framework agents call the OpenAI Responses API regardless of the configured model
维护者通常 5 天内回复
还没有人认领这个 Issue。
- #503 来自 @mikemikimike —— 已关闭,未合并
评估
调研方向
首先,在服务器缺少 OPENAI_API_KEY 的情况下,使用 examples/agents/93_openai_runner_hello_world.py 和 CONDUCTOR_AGENT_LLM_MODEL=anthropic/claude-sonnet-4-6 重现失败。阅读 conductor.ai Runner/framework-agent 路径,然后检查 execution 和 workflow 响应中的 Assistant_llm 和 reasonForIncompletion。完成标准是:example 路由到已配置的模型,或清楚地报告缺少的依赖项并以非零退出码退出。
由索引模型根据 Issue 内容生成。
描述
In short: run one of the *_openai_runner_* examples with an Anthropic model against a server that has no OpenAI key, and it fails — because this code path always calls OpenAI, whatever model you configured. It then prints None and exits 0, so nothing notices.
Files: examples/agents/93_openai_runner_hello_world.py, 94_openai_runner_tools.py, 95_openai_runner_handoffs.py, 96_openai_runner_streaming.py (the conductor.ai Runner / framework-agent path)
Symptom
With no OPENAI_API_KEY in the server process's environment:
$ CONDUCTOR_AGENT_LLM_MODEL=anthropic/claude-sonnet-4-6 python examples/agents/93_openai_runner_hello_world.py
Framework agent 'Assistant' execution FAILED
None
Both 93 and 96 exit 0 despite failing, so exit-code-based tooling — including scripts/run_examples.sh — scores them green.
Cause
The framework-agent path calls the OpenAI Responses API regardless of the configured model. With an Anthropic model and no OpenAI key on the server, the Assistant_llm LLM_CHAT_COMPLETE task sends an empty key to OpenAI instead of routing to Anthropic:
Task execution failed: OpenAI Responses API call failed: Responses API failed with status 401:
{"error": {"message": "Incorrect API key provided: ''. You can find your API key at
https://platform.openai.com/account/api-keys.", "type": "invalid_request_error",
"param": null, "code": "invalid_api_key"}}
Read it back with:
curl -s localhost:8080/api/agent/executions?size=5
curl -s "localhost:8080/api/workflow/<executionId>?includeTasks=true" # Assistant_llm -> reasonForIncompletion
Confirmed by changing only the server's environment, one server, everything else fixed:
| Server env | model | result |
|---|---|---|
no OPENAI_API_KEY |
anthropic/claude-sonnet-4-6 |
FAILED |
no OPENAI_API_KEY |
anthropic/claude-opus-4-6 |
FAILED |
OPENAI_API_KEY present |
anthropic/claude-sonnet-4-6 |
pass |
OPENAI_API_KEY present |
anthropic/claude-opus-4-6 |
pass |
Ruled out:
- the client's environment — fails with the client key set, passes with it unset
langchain-anthropicbeing installed — passes with it uninstalled
Only the server's environment matters.
Fix
Either drop the OpenAI dependency when the target model is not OpenAI, or fail with a message naming the missing key. Silent failure with None and exit 0 is the worst outcome.
Verify
Start the server with no OPENAI_API_KEY, run 93 with an Anthropic model — it should either work or say why, and exit non-zero if it fails.
Note: These examples document CONDUCTOR_AGENT_LLM_MODEL=openai/gpt-4o (or anthropic/claude-opus-4-6), so a user following the Anthropic option with an Anthropic-only server hits this immediately.
- 主要语言
- Python
- 星标
- 104
- 派生
- 45
- 平均合并
- 4 天 3 小时
- 30 天内合并 PR
- 2
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
conductor-oss/python-sdk 的其他 Issue
-
Async SSE client reuses httpx.AsyncClient across event loops -> "Event loop is closed"可能已有人在做 @abhinavrastogi2627 于 2 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 78/100
conductor-oss/python-sdk#507 ·
维护者通常 5 天内回复
-
`.[agents]` extra omits `langchain-anthropic`, so a shipped example cannot run可能已有人在做 @abhinavrastogi2627 于 3 天前认领。 未关闭bug dependencies
难度 2/5 1-3 小时 新手友好度 88/100
conductor-oss/python-sdk#486 ·
维护者通常 5 天内回复
-
Framework-agent failures return `None` instead of the failed task's reason可能重新可做 关联的 PR 已关闭且未合并。 未关闭bug
难度 2/5 1-3 小时 新手友好度 78/100
conductor-oss/python-sdk#483 ·
维护者通常 5 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
conductor-oss/python-sdk#478 ·
维护者通常 5 天内回复
-
Example 39c_serverless_code_execution.py needs to be changed for it to work可能已有人在做 @nthmost-orkes 于 14 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 90/100
conductor-oss/python-sdk#512 ·
维护者通常 5 天内回复
查看 conductor-oss/python-sdk 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
UKGovernmentBEIS/inspect_ai#5781 ·
维护者通常 2 天内回复
-
Bump .cicd to wamp-cicd 4c2f9ac: `just land` refuses open A18 decisions, `just where` lists them未关闭
难度 1/5 1 小时以内 新手友好度 82/100
crossbario/cfxdb#139 ·
-
Bump .cicd to wamp-cicd 4c2f9ac: `just land` refuses open A18 decisions, `just where` lists them未关闭
难度 1/5 1 小时以内 新手友好度 84/100
crossbario/txaio#241 ·
-
UX
难度 2/5 1-3 小时 新手友好度 82/100
mediajunkie/piper-morgan-product#1963 ·
-
难度 2/5 1-3 小时 新手友好度 64/100