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

Aperta
#421 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
22/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
Go
Stelle
141
Fork
28
Merge medio
1g 15h
PR unite (30g)
113

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Tencent/LoopForge

Tutte le issue di Tencent/LoopForge

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.