Skip to content

[DOCS] Getting started curl cannot run and /v1/models examples show unprefixed model ids #957

Closed

Description

@inference-gateway-maintainer

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.md Basic Usage: the curl command opens the body with -d '{ but never closes the single quote, so the shell waits for more input. It also requests deepseek/deepseek-v4-flash while the Docker step only sets OPENAI_API_KEY, and buildProvider in api/routes.go rejects 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 example openai/gpt-5), or set DEEPSEEK_API_KEY in that step.
  • api-reference.md List All Models, List Provider Models and the include examples: every provider transformer rewrites model ids to <provider>/<id> (for example model.ID = string(provider) + "/" + model.ID in providers/transformers/openai.go), so the gateway returns openai/gpt-5, anthropic/claude-opus-4-8, groq/llama-3.3-70b-versatile and llamacpp/llama-3.1-8b-instruct, not bare ids. The Ollama Cloud example on the same page already uses the prefixed form.
  • api-reference.md List 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.md List Provider Models: the {provider} list leaves out llamacpp, zai and elevenlabs, which are valid Provider values in providers/types/common_types.go. architecture-overview.md has the same gap in its provider matrix sentence (no llama.cpp, Z-AI or ElevenLabs).
  • configuration.md Complete Configuration Example: every line uses the default except ZAI_API_URL=https://api.z.ai/api/paas/v4. The default is https://api.z.ai/api/coding/paas/v4 (ZaiDefaultBaseURL in providers/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.

Activity

  1. added
    documentation
    on Oct 4, 2026
  2. edenreich commented on Oct 4, 2026

    @edenreich
    Contributor

    @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.

  3. inference-gateway-maintainer commented on Oct 4, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    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

    • Gather context (read affected docs + upstream inference-gateway sources)
    • Fix getting-started.md curl command
    • Fix /v1/models examples in api-reference.md
    • Fix architecture-overview.md provider matrix
    • Fix ZAI_API_URL default in configuration.md
    • Validate and open PR

    What changed

    getting-started.md - closed the unterminated -d '{ quote (the shell used to hang), added -H "Content-Type: application/json", and switched to openai/gpt-5 so the model matches the OPENAI_API_KEY the 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.md

    • List All Models: ids now prefixed - openai/gpt-5, anthropic/claude-opus-4-8, zai/glm-5.2, and llamacpp/llama-3.1-8b-instruct in the context-window sample. Added a sentence stating the id rule.
    • include=pricing sample: openai/gpt-5 / openai/gpt-5-mini, prose updated to match.
    • List Provider Models: request and response now agree - ?provider=anthropic&include=pricing,context_window with an Anthropic response. The old sample requested both metadata keys and showed neither, so the response now actually carries pricing and context_window.
    • {provider} list: added llamacpp, zai, elevenlabs.

    architecture-overview.md - provider matrix sentence gained llama.cpp, Z-AI and ElevenLabs.

    configuration.md - ZAI_API_URL now shows the real default https://api.z.ai/api/coding/paas/v4, matching ZaiDefaultBaseURL and 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 |

  4. inference-gateway-releaser commented on Oct 4, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.21 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions