Skip to content

Conversation

@kohankhaki
Copy link
Collaborator

@kohankhaki kohankhaki commented Nov 25, 2025

PR Type

Feature

Short Description

  • Add new standardized model calling API: Introduces get_standard_model_client and async_call_model as the recommended way to call GPT, Claude, and Gemini models with provider-aware argument handling and unified error semantics.
  • Support structured output modes: async_call_model supports TEXT, JSON_PARSE, and STRUCTURED modes, enabling robust JSON parsing and provider-side structured output where available.
  • Preserve legacy behavior: Existing get_model_client and RetryableModelClient remain unchanged so current call sites continue to work without modification.

Tests Added

None


This change is Reviewable

@kohankhaki kohankhaki requested a review from afkanpour November 25, 2025 19:09
Copy link
Collaborator

@afkanpour afkanpour left a comment

Choose a reason for hiding this comment

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

@afkanpour reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @kohankhaki)

@kohankhaki kohankhaki merged commit ad1dc0a into main Nov 28, 2025
1 of 2 checks passed
@kohankhaki kohankhaki deleted the std_model_call branch November 28, 2025 20:29
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.

3 participants