流式改成默认开,TALOS_STREAM=0 关 - #5
Merged
Merged
Conversation
没设 TALOS_STREAM 就流;设成 0 / false / no / off(不分大小写、容空格)回到整份返回那条老路。 README 那段和 agent.py 的注释跟着改:哪家跑出毛病,先关掉它,再来看是哪一块没拼对。 判据要真的起一个进程:开关在 import 时读环境变量,而 conftest 为了让几百条用例的假客户端 照旧回整份,把每条测试里的 STREAM 都钉成了关 —— 在测试进程里看它永远是关的。 cwd 放在空目录,别让本机的 .env 替判据做决定。旧代码下当场红在「没设时没开」。 端到端走了一遍真的 once()(也就是 agent.py -p 那条路),本地起一个 OpenAI 兼容的假服务 吐流式块,在伪终端里跑:转圈从「模型在写 write_file(hello.py) · 800 字」涨到 14,435 字, 文件 14,000 字符原样落地,两次请求都带了 stream + include_usage,token 和缓存命中照常入账。 还是没对哪一家真调用过。 345 判据:343 过、5 skip、1 xfail(原有);TALOS_STREAM=1 下同样绿。selfcheck 绿。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014gdkHx6rLSMVsUmQiErVSn
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动
TALOS_STREAM就流式;设成0/false/no/off(不分大小写、容空格)回到整份返回那条老路agent.py的注释、conftest 的注释跟着改:哪家跑出毛病,先设TALOS_STREAM=0,再来看是哪一块没拼对判据
test_streaming_is_on_unless_you_turn_it_off真的起一个进程查默认值:开关在 import 时读环境变量,而 conftest 为了让几百条用例的假客户端照旧回整份,把每条测试里的STREAM都钉成了关 —— 在测试进程里看它永远是关的。cwd 放在空目录,别让本机的.env替判据做决定。旧代码下当场红在「没设时没开」。端到端
走了一遍真的
once()(也就是agent.py -p那条路):本地起一个 OpenAI 兼容的假服务吐流式块,在伪终端里跑,TALOS_STREAM不设:两次请求都带了
stream: true+include_usage。还是没对哪一家真调用过。验证
TALOS_STREAM=1下同样绿🤖 Generated with Claude Code
https://claude.ai/code/session_014gdkHx6rLSMVsUmQiErVSn
Generated by Claude Code