Replace openai_vendor with clearer OpenAI API classification

Offen
#4,756 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@onatozmenn arbeitet bereits daran.

Seit 05.11.2026.

  • #4818 von @onatozmenn — offen

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
45/100
Issue-Typ
Refactoring
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
go

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
Go
Sterne
4.7k
Forks
565
Ø Merge
18 Std. 52 Min.
Gemergte PRs (30 T.)
221

Entwicklungsumgebung

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

  • Enthält ein Dockerfile oder eine Docker-Compose-Datei
  • Keine Pull-Request-Vorlage
  • Kein Beitragsleitfaden

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus docker/docker-agent

Alle Issues in docker/docker-agent

Ähnliche Issues

Weitere Issues zu Go

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.