Skip to content

refactor(tutorials): consolidate model provider config to OpenAI-compatible variables - #253

Merged
MisterVVP merged 4 commits into
dev-implement-examples-2.0-production-tutorialsfrom
dev-remove-gemini-mentions-from-code
Sep 21, 2026
Merged

MisterVVP merged 4 commits into
dev-implement-examples-2.0-production-tutorialsfrom
dev-remove-gemini-mentions-from-code

Conversation

@MisterVVP

@MisterVVP MisterVVP commented Sep 20, 2026 •

Copy link
Copy Markdown
Owner

Motivation

  • Remove provider-specific duplication introduced for Gemini and keep tutorials concise by reusing the shared OpenAI-compatible model variables.
  • Prevent proliferation of provider-specific compose files and environment variables while retaining the ability to target Gemini via its OpenAI-compatible endpoint.
  • Simplify startup checks and configuration logic to reduce maintenance burden and developer confusion.

Description

  • Removed Gemini-specific Compose overrides (compose.gemini.yaml) from both tutorials and deleted the provider-specific smoke-check in scripts/run_tutorials.sh.
  • Eliminated Gemini-specific constants and branch logic from LoadModelConfig in both tutorial model.cpp files and kept support for deterministic and openai_compatible providers only.
  • Rewrote the tutorials' README sections to replace the long Gemini-specific instructions with a concise OpenAI-compatible endpoints section that documents how to target Gemini via A2A_TUTORIAL_MODEL_BASE_URL, A2A_TUTORIAL_MODEL_NAME, and A2A_TUTORIAL_MODEL_API_KEY.
  • Kept the existing HTTP retry helper and model implementation path (OpenAi) unchanged while routing all compatible services through the shared config variables.

@MisterVVP MisterVVP added the codex Automatic label added by codex agent. Should not be used label Sep 20, 2026 — with ChatGPT Codex Connector
@MisterVVP MisterVVP self-assigned this Sep 20, 2026
@MisterVVP MisterVVP added AI agent AI agent contribution and removed codex Automatic label added by codex agent. Should not be used labels Sep 20, 2026
@MisterVVP

Copy link
Copy Markdown
Owner Author

hardcoded deterministic backend setup must be removed

@MisterVVP MisterVVP added the human Human contribution label Sep 21, 2026
@MisterVVP
MisterVVP merged commit 7fc76a6 into dev-implement-examples-2.0-production-tutorials Sep 21, 2026
19 checks passed
@MisterVVP
MisterVVP deleted the dev-remove-gemini-mentions-from-code branch September 21, 2026 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI agent AI agent contribution human Human contribution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant