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

Đang mở
#421 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
22/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Lĩnh vực
ai-infra-agents, api

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
Go
Star
141
Fork
28
Merge trung bình
1 ngày 15 giờ
Pull request đã merge (30 ngày)
113

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Tencent/LoopForge

Tất cả issue của Tencent/LoopForge

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.