[Feature]: 支持通过 OpenAI、Anthropic 等协议接入第三方模型

未關閉
#421 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
5/5
預估耗時
一週以上
新手友好度
22/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍

研究方向

The payload names no files or entry points, so start by finding where the current model and executor configuration lives in the settings code and docs. Agree with maintainers on which protocols are in scope for the first version and how the connection test should behave. Done means a design settled on those points, not a finished implementation, since this touches settings UI, the model layer and the docs.

由索引模型根據 Issue 內容生成。

描述

Problem

目前 LoopForge 的模型接入与已有执行器和配置方式绑定较紧,使用第三方模型服务或团队自建模型网关不够方便。

不同模型服务使用不同的接口协议,例如 OpenAI API 和 Anthropic Messages API。希望能够复用现有的模型服务、API 地址和密钥,按需选择模型,而不必局限于平台预设的接入方式。

Proposed behavior

希望支持通过常见模型接口协议接入第三方模型,例如:

  • OpenAI API 及兼容 OpenAI 协议的模型服务
  • Anthropic Messages API 及兼容该协议的模型服务
  • 其他常见模型协议,可后续按需扩展

希望可以在设置中选择协议类型,并配置 API Base URL、API Key、模型名称或模型 ID,提供连接测试功能。

配置完成后,希望能在任务、对话和 SOP 角色中选择这些模型。对于不同执行器或功能暂不支持的协议,也希望在界面或文档中说明支持范围。

如果目前已有相关接入方式,希望能在文档中补充配置示例。感谢!

Scope

Platform — UI / integrations

Alternatives considered

使用已有执行器和模型接入方式;但在复用现有第三方模型服务或自建网关时,配置不够灵活。

Checks
  • This proposal does not require organization-specific infrastructure or credentials.
  • I searched existing issues and discussions for similar proposals.
主要語言
Go
星號
141
分支
28
平均合併
1 天 15 小時
30 天內合併 PR
113

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

Tencent/LoopForge 的其他 Issue

查看 Tencent/LoopForge 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。