Repository navigation
Closed
Task
Copy link
Labels
Description
Summary
The first request a new user copies cannot work, and the GET /v1/models examples show response shapes the gateway no longer returns. Sources are in the inference-gateway/inference-gateway repo: api/routes.go, providers/transformers/*.go, providers/types/common_types.go and providers/constants/constants.go.
Acceptance Criteria
-
getting-started.mdBasic Usage: thecurlcommand opens the body with-d '{but never closes the single quote, so the shell waits for more input. It also requestsdeepseek/deepseek-v4-flashwhile the Docker step only setsOPENAI_API_KEY, andbuildProviderinapi/routes.gorejects a provider without a configured key with a 400. Close the quote, add-H "Content-Type: application/json", and use a model that matches the key from the Docker step (for exampleopenai/gpt-5), or setDEEPSEEK_API_KEYin that step. -
api-reference.mdList All Models, List Provider Models and theincludeexamples: every provider transformer rewrites model ids to<provider>/<id>(for examplemodel.ID = string(provider) + "/" + model.IDinproviders/transformers/openai.go), so the gateway returnsopenai/gpt-5,anthropic/claude-opus-4-8,groq/llama-3.3-70b-versatileandllamacpp/llama-3.1-8b-instruct, not bare ids. The Ollama Cloud example on the same page already uses the prefixed form. -
api-reference.mdList Provider Models: the example request is?provider=deepseek...but the sample response says"provider": "openai"and lists OpenAI models. Make the request and the response match. -
api-reference.mdList Provider Models: the{provider}list leaves outllamacpp,zaiandelevenlabs, which are validProvidervalues inproviders/types/common_types.go.architecture-overview.mdhas the same gap in its provider matrix sentence (no llama.cpp, Z-AI or ElevenLabs). -
configuration.mdComplete Configuration Example: every line uses the default exceptZAI_API_URL=https://api.z.ai/api/paas/v4. The default ishttps://api.z.ai/api/coding/paas/v4(ZaiDefaultBaseURLinproviders/constants/constants.go, and the generated Z-AI table on the same page). Use the default, or say why the pay-as-you-go URL is shown.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
edenreich commentedon Oct 4, 2026
@claude can you work on this? use /ponytail:ponytail
Also please use the more recent models, not the legacy ones that were deprecated, try to mix different providers to make it more clear that people can use any provider - it's provider agnostic.
inference-gateway-maintainer commentedon Oct 4, 2026
Claude finished @edenreich's task in 3m 3s —— View job •
fix/issue-957-20261004-1114• [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...fix/issue-957-20261004-1114?quick_pull=1&title=Issue%20%23957%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23957%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)Done - PR #966 opened
inference-gatewaysources)getting-started.mdcurl command/v1/modelsexamples inapi-reference.mdarchitecture-overview.mdprovider matrixZAI_API_URLdefault inconfiguration.mdWhat changed
getting-started.md- closed the unterminated-d '{quote (the shell used to hang), added-H "Content-Type: application/json", and switched toopenai/gpt-5so the model matches theOPENAI_API_KEYthe Docker step sets. Added one line noting ids are<provider>/<model>and that swapping providers is a one-word change (anthropic/claude-opus-4-8,google/gemini-3-flash), plus the 400 behavior when a provider has no key.api-reference.mdopenai/gpt-5,anthropic/claude-opus-4-8,zai/glm-5.2, andllamacpp/llama-3.1-8b-instructin the context-window sample. Added a sentence stating the id rule.include=pricingsample:openai/gpt-5/openai/gpt-5-mini, prose updated to match.?provider=anthropic&include=pricing,context_windowwith an Anthropic response. The old sample requested both metadata keys and showed neither, so the response now actually carriespricingandcontext_window.{provider}list: addedllamacpp,zai,elevenlabs.architecture-overview.md- provider matrix sentence gained llama.cpp, Z-AI and ElevenLabs.configuration.md-ZAI_API_URLnow shows the real defaulthttps://api.z.ai/api/coding/paas/v4, matchingZaiDefaultBaseURLand the generated Z-AI table on the same page.Per your note, examples span OpenAI, Anthropic, Z-AI, Google and llama.cpp rather than leaning on one provider, and avoid the deprecated generations (
gpt-4o,llama-3.3-70b-versatile) that the old samples used.Validation
bun run lint:md,bun run format:check,bun run build- all pass.One judgement call worth flagging: the Anthropic pricing and context-window numbers in the new List Provider Models sample are illustrative, same as every other sample on that page - they are not pinned to live models.dev values.
View PR #966 | Branch |
inference-gateway-releaser commentedon Oct 4, 2026
🎉 This issue has been resolved in version 0.9.21 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀