Skip to content

Conversation

DouweM
Copy link
Collaborator

@DouweM DouweM commented May 26, 2025

Copy link
Contributor

hyperlint-ai bot commented May 26, 2025

PR Change Summary

Enhanced OpenAI compatibility by introducing specific provider classes for various models, allowing for more flexible configuration of model behaviors.

  • Updated documentation to reflect the use of specific providers like DeepSeekProvider, GrokProvider, PerplexityProvider, FireworksProvider, and TogetherProvider.
  • Replaced generic references to OpenAIProvider with model-specific providers in code examples.
  • Clarified instructions for using different API keys with their respective providers.

Modified Files

  • docs/models/openai.md

How can I customize these reviews?

Check out the Hyperlint AI Reviewer docs for more information on how to customize the review.

If you just want to ignore it on this PR, you can add the hyperlint-ignore label to the PR. Future changes won't trigger a Hyperlint review.

Note specifically for link checks, we only check the first 30 links in a file and we cache the results for several hours (for instance, if you just added a page, you might experience this). Our recommendation is to add hyperlint-ignore to the PR to ignore the link check for this PR.

Copy link

github-actions bot commented May 26, 2025

Docs Preview

commit: 13fef4b
Preview URL: https://95e98af7-pydantic-ai-previews.pydantic.workers.dev

@Kludex
Copy link
Member

Kludex commented May 27, 2025

Can we include the providers on another PR?

@DouweM
Copy link
Collaborator Author

DouweM commented May 27, 2025

@Kludex Yep, I wanted to make sure the way I was implementing the feature would allow for proper model profile selection in those cases, but that definitely makes more sense in a follow-up PR.

Edit: Done in #1842

@DouweM DouweM mentioned this pull request May 27, 2025
Copy link
Contributor

@dmontagu dmontagu left a comment

Choose a reason for hiding this comment

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

I think just the JsonSchemaTransformer thing to have a more specific name, otherwise LGTM

…hemaTransformer for those model profiles that need that
@webcoderz
Copy link

This is great and probably fixes a ton of issues I’m running into using OpenAI compatible APIs w/ vLLM

@DouweM DouweM enabled auto-merge (squash) May 28, 2025 19:53
@DouweM DouweM merged commit 8637608 into main May 28, 2025
17 checks passed
@DouweM DouweM deleted the model-profile branch May 28, 2025 19:58
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.

Add ModelProfile to let model-specific behaviors be configured independent of the model class
4 participants