Skip to content

[DOCS] Examples drift: stale gateway env vars in examples/.env.example, missing feature flags, outdated README lists #173

Closed

Description

Summary

Several example and README items no longer match the code and the vendored spec (openapi.yaml, schemas v1.14.0). examples/README.md tells users to copy examples/.env.example to .env and start the gateway with it, but that file still uses env var names the gateway no longer defines and lacks the feature flags the images and decisions examples depend on, so those two examples get a 404 when run as documented. The root README.md provider list and example list lag behind the code, and examples/chat/main.py prints a model repr instead of the reply text. All runnable examples still type-check (task lint passes) - this is configuration and prose drift, not broken imports.

Acceptance Criteria

  • examples/.env.example: rename TELEMETRY_ENABLE to TELEMETRY_ENABLED, A2A_ENABLE to A2A_ENABLED and AUTH_ENABLE to AUTH_ENABLED - the gateway config in openapi.yaml (Config.x-config, lines 5116, 5253 and 5284) only defines the _ENABLED names, so the old names are ignored.
  • examples/.env.example: remove the settings the gateway config no longer defines - A2A_EXPOSE, A2A_POLLING_ENABLE, A2A_POLLING_INTERVAL, A2A_POLLING_TIMEOUT, A2A_MAX_POLL_ATTEMPTS, A2A_MAX_RETRIES, A2A_RETRY_INTERVAL, A2A_INITIAL_BACKOFF, A2A_ENABLE_RECONNECT, A2A_RECONNECT_INTERVAL, A2A_DISABLE_HEALTHCHECK_LOGS, AUTH_OIDC_CLIENT_SECRET and CLIENT_TIMEOUT. The A2A section of Config.x-config now has only A2A_ENABLED, A2A_AGENTS, A2A_RESOURCE_URL, A2A_CLIENT_TIMEOUT, A2A_STREAM_IDLE_TIMEOUT and A2A_CARD_REFRESH_INTERVAL.
  • examples/.env.example: add the feature flags IMAGES_ENABLED, DECISIONS_ENABLED, AUDIO_ENABLED and VISION_ENABLED (openapi.yaml:5062-5081, all default false) and the URL and key pairs for the providers the Provider literal now includes but the file omits - LLAMACPP, OLLAMA_CLOUD, ELEVENLABS, MISTRAL, MINIMAX, MOONSHOT, NVIDIA, ZAI, WEBWRIGHT and MIRELO (openapi.yaml:5465-5600).
  • examples/images/README.md: add IMAGES_ENABLED=true to the prerequisites - create_image and create_image_edit call POST /images/generations and POST /images/edits, which return 404 while the flag is off (openapi.yaml:5067-5071).
  • examples/decisions/README.md: add DECISIONS_ENABLED=true to the prerequisites - create_decision calls POST /decisions, which returns 404 while the flag is off (openapi.yaml:5077-5081).
  • README.md "Supported Providers": add WebWright ("webwright") and Mirelo ("mirelo") - both are members of the Provider literal in inference_gateway/models.py:12-34.
  • README.md "Examples": add the Decisions example (./examples/decisions/) - the directory exists and examples/README.md already lists it.
  • examples/chat/main.py:37: print response.choices[0].message.content.root - Message.content is a MessageContent root model, so the current f-string prints Response: root='...', while the snippet in examples/chat/README.md and the root README.md both use .content.root.

Activity

  1. added
    documentation
    on Nov 17, 2026
  2. edenreich commented on Nov 17, 2026

    @edenreich
    Contributor

    @claude can you work on this?

  3. inference-gateway-maintainer commented on Nov 17, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Claude finished @edenreich's task in 1m 10s —— View job • feat/issue-173-20261117-1939 • [Create PR ➔](https://github.com/inference-gateway/python-sdk/compare/main...feat/issue-173-20261117-1939?quick_pull=1&title=Issue%20%23173%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23173%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Done: PR #177 is open

    I opened #177. It makes every change in the issue's acceptance criteria. The issue is on Roadmap 2026 with status QA.

    • examples/.env.example
      • Renamed the three settings to their _ENABLED names and removed the settings the gateway no longer defines.
      • Added the missing A2A settings: A2A_RESOURCE_URL, A2A_STREAM_IDLE_TIMEOUT and A2A_CARD_REFRESH_INTERVAL.
      • Added VISION_ENABLED, IMAGES_ENABLED, AUDIO_ENABLED and DECISIONS_ENABLED, all set to false.
      • Added URL and key pairs for the 10 missing providers. The URLs are the defaults from the spec.
    • Images and decisions READMEs: the prerequisites now say to set IMAGES_ENABLED=true and DECISIONS_ENABLED=true. Without them those endpoints return 404.
    • Root README.md: added WebWright and Mirelo to the provider list and the Decisions example to the examples list.
    • examples/chat/main.py: now prints message.content.root, so it shows the reply text instead of root='...'.
    • Linting: not run, because black, isort and mypy aren't installed on the runner. The only Python change reads .root on Message.content, which is a required field, so I expect no type errors.

    I didn't add VIDEOS_ENABLED, GUARDRAILS_*, ROUTING_* or the newer MCP, telemetry and TLS settings to .env.example. The spec defines them, but the issue doesn't ask for them.
    | Branch

  4. moved this from Todo to In progress in 2026on Nov 17, 2026
  5. moved this from In progress to QA in 2026on Nov 17, 2026
  6. moved this from QA to Done in 2026on Nov 17, 2026
  7. inference-gateway-releaser commented on Nov 17, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.26.0 🎉

    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