Support bring-your-own LLM (hosted OpenAI-compatible / Azure OpenAI) for language model integration
Maintainer antworten meist innerhalb von 1 Tag
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
Summary
Dev Proxy's language model integration is currently designed for local SLMs (default: Ollama llama3.2 at localhost:11434). As inference prices drop, using hosted LLMs is increasingly viable and yields better results (e.g. operation IDs/descriptions in OpenApiSpecGeneratorPlugin/TypeSpecGeneratorPlugin, mock responses in OpenAIMockResponsePlugin).
Current limitations
OpenAILanguageModelClientsends noAuthorization/api-keyheader, so hosted endpoints (OpenAI, Azure OpenAI, GitHub Models, OpenRouter, Foundry) can't be used.- Only
OllamaandOpenAIclients; no Azure OpenAI support (api-keyheader,api-version, deployment-based URLs). IsEnabledCoreAsyncsends a real "Are you there?" completion on startup, which costs money on paid endpoints.languageModelschema describes the feature as "local language model".
Proposed changes
- Add
apiKeytolanguageModelconfig, supporting@env:VAR_NAMEso secrets stay out of config files; send as Bearer token (OpenAI-compatible) orapi-key(Azure). - Add
AzureOpenAIclient (or evaluate moving toMicrosoft.Extensions.AIIChatClient). - Replace the startup availability probe with a non-billable check (e.g.
GET /models) where possible. - Update
rc.schema.json(current version folder) and docs. - Never log API keys.
Follow-ups (out of scope here): per-plugin model overrides, redaction/opt-in for sending captured traffic to cloud models.
- Vorherrschende Sprache
- C#
- Sterne
- 841
- Forks
- 90
- Ø Merge
- 2 T. 11 Std.
- Gemergte PRs (30 T.)
- 59
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus dotnet/dev-proxy
-
GetTokenizedUrl fails on parenthesized Graph URL segmentsEvtl. vergeben @waldekmastykarz hat das vor 4 Tagen übernommen. Offenwork in progress
dotnet/dev-proxy#2041 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Support discriminator for oneOf in OpenApiValidationPluginEvtl. vergeben @waldekmastykarz hat das vor 4 Tagen übernommen. Offenwork in progress
dotnet/dev-proxy#2040 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Validate language-model mock output against the schema in OpenApiMockResponsePluginEvtl. vergeben @waldekmastykarz hat das vor 4 Tagen übernommen. Offenon hold
dotnet/dev-proxy#2039 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
OpenApiSpecGeneratorPlugin omits parameters and response headers from generated specsEvtl. vergeben @waldekmastykarz hat das vor 4 Tagen übernommen. Offenbug work in progress
dotnet/dev-proxy#2032 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
breaking change on hold
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 65/100
dotnet/dev-proxy#1928 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in dotnet/dev-proxy
Ähnliche Issues
-
needs-area-label
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
Maintainer antworten meist innerhalb von 2 Tagen
-
bug github_actions
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
endercodezz/BYDLO#336 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
SubtitleEdit/subtitleedit#16638 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
sebastienros/jint#4449 ·
Maintainer antworten meist innerhalb von 1 Tag