Skip to content

Conversation

@MarvelNwachukwu
Copy link
Contributor

Pull Request

Description

Related Issue

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Performance improvement
  • Code refactoring (no functional changes)
  • Tests
  • Other (please describe):

How Has This Been Tested?

Checklist

  • My code follows the code style of this project
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed
  • My changes generate no new warnings
  • I have checked for potential breaking changes and addressed them

Screenshots (if applicable)

Additional Notes

@changeset-bot
Copy link

changeset-bot bot commented Jan 8, 2026

⚠️ No Changeset found

Latest commit: 4a8ba42

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link
Contributor

vercel bot commented Jan 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
adk-typescript-docs Ready Ready Preview Jan 8, 2026 8:44pm
adk-web Ready Ready Preview Jan 8, 2026 8:44pm

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @MarvelNwachukwu, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly expands the documentation for ADK-TS agents by integrating OpenRouter as a new, flexible option for LLM configuration. The changes aim to provide users with a unified and simplified way to access a diverse range of models from various providers, enhancing the framework's versatility and user experience. This update includes detailed setup guides, benefits, and usage examples, making it easier for developers to leverage OpenRouter's capabilities.

Highlights

  • OpenRouter Documentation Added: Introduced comprehensive documentation for integrating OpenRouter as a new option for configuring Large Language Models (LLMs) with ADK-TS agents.
  • Enhanced Model Integration Options: Updated the 'Models & Providers' documentation to reflect OpenRouter as a third primary approach, alongside direct model names and Vercel AI SDK.
  • Detailed Setup and Benefits: Provided step-by-step instructions for OpenRouter setup, including installation, environment variables, helper creation, and usage examples. Highlighted benefits such as single API key, cost optimization, and access to specialized models.
  • Updated Model Choice Guidance: Revised the 'Which Option Should You Choose?' table to include OpenRouter as a recommended solution for multi-provider access, cost optimization, and web search capabilities.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds comprehensive documentation for integrating OpenRouter as a model provider. The changes are well-structured and clearly explain the setup, usage, and benefits of OpenRouter. I've identified a couple of minor issues in the example code snippets that could improve the accuracy and robustness of the documentation for users. Overall, this is a great addition to the docs.

| Google | `google/gemini-2.5-pro` | Advanced reasoning, multimodal |
| OpenAI | `openai/gpt-4o` | Powerful general-purpose model |
| Anthropic | `anthropic/claude-sonnet-4-5-20250929` | Excellent for analysis and coding |
| Meta | `meta-llama/llama-3.3-70b-instruct` | Open source, strong performance |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

There appears to be a typo in the Llama 3 model name. According to OpenRouter's documentation, the model identifier is meta-llama/llama-3-70b-instruct, not llama-3.3-70b-instruct. Using the incorrect name will cause errors for users who copy this example.

| Meta       | `meta-llama/llama-3-70b-instruct` | Open source, strong performance   |

Comment on lines +336 to +338
TELEGRAM_BOT_TOKEN: z.string(),
LLM_MODEL: z.string().default("google/gemini-2.5-flash"),
OPENROUTER_API_KEY: z.string(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For required environment variables like API keys, it's a good practice to ensure they are not empty strings. Using z.string().min(1) instead of just z.string() will enforce this and make the configuration example more robust. This applies to both TELEGRAM_BOT_TOKEN and OPENROUTER_API_KEY.

  TELEGRAM_BOT_TOKEN: z.string().min(1),
  LLM_MODEL: z.string().default("google/gemini-2.5-flash"),
  OPENROUTER_API_KEY: z.string().min(1),

Copy link
Contributor

@Timonwa Timonwa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. Just one comment, and we are GTG.

});
```

### Example: Environment-Based Configuration
Copy link
Contributor

@Timonwa Timonwa Jan 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove this example section, because there is nothing unique or different about it. It is the same as building any ADK-TS agent and you have already covered the setup in "Setup Requirements", so it is just duplicating the same content.

Copy link
Member

@Adebesin-Cell Adebesin-Cell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Kindly fix @Timonwa's suggestion and we can merge

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants