Skip to content

Feat/dynamic model#71

Merged
ishaksebsib merged 4 commits into
mainfrom
feat/dynamic-model
Jan 24, 2026
Merged

Feat/dynamic model#71
ishaksebsib merged 4 commits into
mainfrom
feat/dynamic-model

Conversation

@ishaksebsib

Copy link
Copy Markdown
Member

Description

Added runtime model selection support (DynamicModel) to all providers

// dynamic model with default setting
let dyn_model = OpenAI::model_name("gpt-5");

// dynamic model with custom setting
let dyn_from_build = OpenAI::<DynamicModel>::builder()
        .model_name("gpt-5")
        .api_key("sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
        .base_url("https://api.openai.com/v1")
        .build()
        .unwrap();

Related Issue

#67

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist

  • I have read the Contributing Guidelines.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.
  • Any dependent changes have been merged and published in downstream modules.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@ishaksebsib ishaksebsib merged commit b84866f into main Jan 24, 2026
6 checks passed
@ishaksebsib ishaksebsib deleted the feat/dynamic-model branch January 24, 2026 10:03
@gaki2

gaki2 commented Jan 25, 2026

Copy link
Copy Markdown
Contributor

I appreciate your help :) @ishaksebsib

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