Skip to content

Add Dialect to model providers#797

Draft
calvinmclean wants to merge 2 commits intoobot-platform:mainfrom
calvinmclean:feature/provider-dialect
Draft

Add Dialect to model providers#797
calvinmclean wants to merge 2 commits intoobot-platform:mainfrom
calvinmclean:feature/provider-dialect

Conversation

@calvinmclean
Copy link
Copy Markdown

@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.

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