Use OpenAI model and Groq Models in the same application #466
|
Hi, I would like to know if it's possible to use OpenAI models for some use cases and Groq for other use cases in the same application. It seems that to use Groq I need to override the open_ai key and URL, and this will affect how regular OpenAI models work, right? Is there a possibility of using different providers/custom models at the same time if they use the OpenAI api, for example? Thanks! |
Answered by
tpaulshippy
Oct 18, 2025
Replies: 1 comment
|
One of the best features of this library is the ability to switch out models and providers in your application at will. This works whether they share similar APIs or not. See https://rubyllm.com/configuration/#contexts-isolated-configurations for how to work with different base URLs on the same provider inside your app. |
0 replies
Answer selected by
crmne
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
One of the best features of this library is the ability to switch out models and providers in your application at will. This works whether they share similar APIs or not.
See https://rubyllm.com/configuration/#contexts-isolated-configurations for how to work with different base URLs on the same provider inside your app.