Skip to content

[Bug] API请求超时:无法完成html重构(啥活没产,就干了我input 43万个tokens) #20

@big-dimple

Description

@big-dimple

标题
[Bug] API请求超时:无法完成html重构(啥活没产,就干了我input 43万个tokens)

描述
在尝试根据新设计规范重构example.html时,遇到了持续性的API请求超时问题。每次尝试均在308秒后失败,尽管已成功读取文件内容,但无法完成重构操作。

重现步骤

  1. 提供完整的example.html文件内容(约[4000]行代码)
  2. 执行重构命令:✦ 按照新设计规范重构example.html,保留JavaScript功能
  3. 系统成功读取文件(显示✔ ReadFile example.html
  4. 约5分钟后,出现API超时错误:
    [API Error: Streaming request timeout after 308s. Try reducing input length or increasing timeout in config.]  
    
  5. 无限循环,我手动ctrl+c关闭了。

错误日志

✕ [API Error: Streaming request timeout after 308s. Try reducing input length or increasing timeout in config.  

  Streaming timeout troubleshooting:  
  - Reduce input length or complexity  
  - Increase timeout in config: contentGenerator.timeout  
  - Check network stability for streaming connections  
  - Consider using non-streaming mode for very long inputs]  
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    category/coreCore engine and logicpriority/P1High priority issuescope/api-keysAPI key managementstatus/need-retestingIssue needs to be retested on the latest versiontype/bugSomething isn't working as expected

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions