Registry Mirror
Skip to content

Conversation

@shashankram

Copy link
Copy Markdown
Contributor

Description

Gemini ModelConfigs can now use a custom gemini.baseUrl as the complete API prefix. Both Go and Python clients preserve that prefix without appending an SDK API version, and encode model IDs as a single URL path segment.

Authentication is independent of the endpoint: actorJwt uses Authorization: Bearer, while API-key Secrets use x-goog-api-key. Client placeholders and Substrate credential bindings use the same header selection. Custom endpoints can also be used without credentials.

Change Type

/kind feature

Testing

  • Added CRD admission coverage for custom URLs and Actor JWT with default and custom endpoints.
  • Added translation coverage for endpoint serialization, egress destinations, credential bindings, and conflicting headers.
  • Added Go/Python SDK request coverage for URL prefixes, model-ID encoding, authentication, streaming, and TLS, plus Python HTTP/HTTPS proxy coverage.

Changelog

Gemini ModelConfigs now support custom base URLs and Actor JWT authentication.

@supreme-gg-gg supreme-gg-gg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🤖 AI-generated review. I reviewed the findings before posting.

One finding about preserving the complete API prefix for explicitly configured Google endpoints.

\# Description

- Add Gemini baseUrl overrides across ModelConfig and Go/Python runtimes.
- Select API-key or Actor JWT authentication independently of the endpoint.
- Preserve custom URL prefixes, encoded model IDs, and proxy behavior.
- Cover admission, credential bindings, and SDK requests with regression tests.

\# Change Type

```
/kind feature
```

\# Changelog

```release-note
Gemini ModelConfigs now support custom base URLs and Actor JWT authentication.
```

\# Additional Notes

Signed-off-by: Shashank Ram <shashank.ram@solo.io>
Signed-off-by: Shashank Ram <shashank.ram@solo.io>
@shashankram
shashankram added this pull request to the merge queue Oct 30, 2026
Merged via the queue into kagent-dev:main with commit 12aa4d4 Oct 30, 2026
54 of 55 checks passed
@shashankram
shashankram deleted the model-url branch October 30, 2026 20:18
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.

2 participants