✨feat(config, providers): 添加 K2 Think、LongCat 提供商支持和配置
- 添加对于 K2 Think、LongCat 提供商的支持与配置 - 在 .env.example 中添加了 LongCat 的认证 token 配置,在 app/core/config.py 中实现了相应的解析逻辑 - 重构 app/core/openai.py 以支持多提供商架构,并引入了新的 providers 包来管理不同提供商的接口和路由机制 - 简化 zai_transformer.py 中的动态 headers 生成逻辑 - 在 .env.example 中新增了 LongCat 相关的环境变量配置 - 在 app/core/config.py 中增加了 longcat_token_list 和 provider_model_mapping 属性 - 修改 app/core/openai.py 以使用多提供商系统处理请求 - 创建 app/providers 包,定义基础提供商接口及其实现 - 简化 app/core/zai_transformer.py 中的 get_dynamic_headers 函数
Z
ZyphrZero committed
bacca0c015924a313ab42616a65dc7bd6c724308
Parent: 8a161f4