Skip to content

Add Dialect to model providers#797

Merged
calvinmclean merged 3 commits intoobot-platform:mainfrom
calvinmclean:feature/provider-dialect
Apr 22, 2026
Merged

Add Dialect to model providers#797
calvinmclean merged 3 commits intoobot-platform:mainfrom
calvinmclean:feature/provider-dialect

Conversation

@calvinmclean
Copy link
Copy Markdown
Contributor

@calvinmclean calvinmclean commented Apr 8, 2026

Adds a dialect field to the providerMeta metadata for the Anthropic and OpenAI model providers.

  • anthropic-model-provider-go: "dialect": "AnthropicMessages"
  • openai-model-provider: "dialect": "OpenAIResponses"

This PR is optional — Obot falls back to defaults when it is absent. However, it is recommended for full forward compatibility and consistency with additional model providers that will declare their own dialects.

Depends on obot-platform/obot#6246 and nanobot-ai/nanobot#263.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a dialect metadata field to the OpenAI and Anthropic model provider configurations, declaring their response format types. The dialect field helps downstream systems (like Obot and other consumers) identify and handle provider-specific response formats. According to the PR description, this is an optional forward-compatibility enhancement that includes fallback defaults for when the field is absent.

Changes:

  • Added "dialect": "OpenAIResponses" to the OpenAI model provider metadata
  • Added "dialect": "AnthropicMessages" to the Anthropic model provider metadata
  • Both additions are placed appropriately within their JSON metadata structures with proper comma placement

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
openai-model-provider/tool.gpt Added dialect field identifying OpenAI's response format
anthropic-model-provider-go/tool.gpt Added dialect field identifying Anthropic's response format

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@calvinmclean calvinmclean force-pushed the feature/provider-dialect branch from c38221d to 82fd7af Compare April 14, 2026 16:13
@calvinmclean calvinmclean marked this pull request as ready for review April 14, 2026 16:13
@calvinmclean calvinmclean merged commit 7f6fe28 into obot-platform:main Apr 22, 2026
2 checks passed
@calvinmclean calvinmclean deleted the feature/provider-dialect branch April 22, 2026 18:08
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