Skip to content

Conversation

@birdayz
Copy link
Contributor

@birdayz birdayz commented Nov 3, 2025

Summary

  • Add model and base_url fields to Provider.OpenAI message
  • Deprecate top-level model field for backward compatibility
  • New provider.openai.model field takes precedence when both are set

Motivation

Different LLM providers have different model naming schemes. Keeping model at the provider level makes the schema cleaner and more extensible for future providers.

The base_url field allows using OpenAI-compatible APIs (like Azure OpenAI, local models, etc.) beyond the default OpenAI endpoint.

Backward Compatibility

The existing top-level model field is kept but marked as deprecated to maintain backward compatibility during the transition period. When both fields are set, provider.openai.model takes precedence.

Note: The deprecated top-level model field will be removed in a future release once all clients have migrated to the new provider-specific field.

Changes

  • Added optional model field to Provider.OpenAI message
  • Added optional base_url field to Provider.OpenAI message
  • Marked top-level model field as deprecated in AIAgent, AIAgentCreate, and AIAgentUpdate
  • Updated comments documenting the migration path
  • Regenerated all protobuf code and OpenAPI specs

@github-actions
Copy link

github-actions bot commented Nov 3, 2025

The latest Buf updates on your PR. Results from workflow Buf CI / validate (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedNov 3, 2025, 2:12 PM

… model

Add model and base_url fields to the OpenAI provider configuration.
Keep the existing top-level model field but mark it as deprecated for
backward compatibility. The new provider.openai.model field takes
precedence when both are set.

This allows for a gradual migration path while making the schema cleaner
and more extensible for future providers with different model requirements.

Changes:
- Added optional model field to Provider.OpenAI message
- Added optional base_url field to Provider.OpenAI message
- Marked top-level model field as deprecated in AIAgent, AIAgentCreate, and AIAgentUpdate
- Updated comments to indicate migration path
- Regenerated all protobuf code and OpenAPI specs

Co-Authored-By: Claude <[email protected]>
@birdayz birdayz force-pushed the jb/ai-agent-model-in-provider branch from f93f2b5 to 2648f5c Compare November 3, 2025 14:11
@birdayz birdayz marked this pull request as ready for review November 3, 2025 14:22
@birdayz birdayz changed the title WIP: Move AI agent model into provider, add base_url Move AI agent model into provider, add base_url Nov 3, 2025
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