Skip to content

api/models: update ModelProviderConfig discovery contract - #3494

Merged
EItanya merged 1 commit into
kagent-dev:mainfrom
shashankram:model-provider-api
Nov 2, 2026
Merged

EItanya merged 1 commit into
kagent-dev:mainfrom
shashankram:model-provider-api

Conversation

@shashankram

@shashankram shashankram commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Description

ModelProviderConfig needs separate credentials for model discovery and invocation, with explicit settings for generated ModelConfigs.

  • Add discoveryAuth.secretRef and modelConfigTemplate.auth with Actor JWT, API-key Secret, or token passthrough options.
  • Restrict discovery to OpenAI-compatible endpoints and strengthen endpoint and Secret reference validation.
  • Remove model inventory, discovery timestamps, and Secret hashes from status; retain conditions, observed generation, and model count. Cached model reads now return NotFound.

Change Type

/kind breaking_change

Testing

  • Add CRD admission coverage for auth exclusivity, required Secret fields, Actor JWT validation, and namespace policies.

@shashankram
shashankram requested a review from a team as a code owner November 2, 2026 19:44
\# Description

- Restrict discovery to OpenAI-compatible endpoints with optional credentials
  and stricter endpoint and Secret reference validation.
- Remove cached model IDs, discovery timestamps, and Secret hashes from status;
  retain conditions, observed generation, and model count.
- Generate typed Kubernetes clients and update cached model reads to return
  NotFound when no inventory is stored; explicit refresh remains available.

\# Change Type

```
/kind breaking_change
```

\# Changelog

```release-note
ModelProviderConfig now accepts only OpenAI-compatible discovery and no longer stores model inventories in status; model listing requires an explicit refresh.
```

Signed-off-by: Shashank Ram <shashank.ram@solo.io>
@EItanya
EItanya enabled auto-merge November 2, 2026 22:11
@EItanya
EItanya added this pull request to the merge queue Nov 2, 2026
Merged via the queue into kagent-dev:main with commit 0e9fb70 Nov 2, 2026
30 checks passed
@shashankram
shashankram deleted the model-provider-api branch November 2, 2026 22:46
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

⌂ 换网址