Skip to content

我使用AnyRouter遇到了问题 #101

@gordonlau4567

Description

@gordonlau4567

我在使用中遇到了阻碍,以下是我的配置选项:

native_claude_config_anyrouter = {
'name': 'anyrouter', # /llms 显示名 & mixin 引用名
'apikey': 'sk-', # 非 sk-ant- 前缀 → Bearer 鉴权
'apibase': 'https://a-ocnfniawgw.cn-shanghai.fcapp.run', # 镜像站根域名
'model': 'claude-opus-4-7[1m]', # 必须带 [1m],网关强制 1m-beta
'fake_cc_system_prompt': True, # bool 必填 True;网关会校验 CC 固定系统串
'thinking_type': 'adaptive', # 'adaptive'/'enabled'/'disabled';必填,不发 thinking 会被拒
# 'reasoning_effort': 'high', # 可选;写进 Claude output_config.effort
'max_retries': 5, # int;镜像偶发 503,多重试几次
'read_timeout': 300, # int 秒;1m 上下文响应可能很慢
# 'max_tokens': 32768, # int 默认 8192
# 'prompt_cache': True, # bool 默认 True
'stream': False, # bool 默认 True
# 'proxy': 'http://127.0.0.1:10811', # 可选单 session 代理;不填则不走代理
}

现在的问题是 只有设置'stream': False才能正常运行 ,如果我设置为True,那么当我运行以后在Turn 2 阶段就会报错,如果设置为False就没有这个问题。如果我直接连接官方的CC接口不管设置True还是False好像都没有问题。

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions