Replace openai_vendor with clearer OpenAI API classification

Đang mở
#4,756 3 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

@onatozmenn đang làm issue này rồi.

Từ ngày 5/11/2026.

  • #4818 của @onatozmenn — đang mở

Đá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
45/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go
Lĩnh vực
backend-api-design

Hướng nghiên cứu

Start by reading the provider catalog and the existing code paths that gate reasoning effort, tool calling, and prompt caching on vendor identity; the issue does not name their files or tests. Trace how OpenAI-compatible providers and gateways classify model IDs, then define regression coverage for existing integrations. Done means the catalog has a documented OpenAI versus OpenAI-compatible distinction with fewer provider-specific flags.

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

Mô tả

area/config area/providers area/providers/openai

Context

Follow-up to #4755 and this review comment.

Investigate using api_type: openai and api_type: openai-compatible instead of a separate openai_vendor: true flag in the provider catalog.

Considerations

  • Providers that speak the OpenAI protocol but do not serve OpenAI models.
  • Gateways that serve both OpenAI and other vendors' models, including openai/-qualified model IDs.
  • Existing model-specific reasoning-effort, tool-calling, and prompt-cache behavior currently gated by vendor identity.

Desired outcome

A simpler, documented distinction between OpenAI and OpenAI-compatible APIs, with fewer provider-specific flags and regression coverage preserving existing integrations.

Message-merging compatibility is tracked separately in #4757.

Ngôn ngữ chính
Go
Star
4.7k
Fork
565
Merge trung bình
18 giờ 52 phút
Pull request đã merge (30 ngày)
221

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

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 docker/docker-agent

Tất cả issue của docker/docker-agent

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.