Need help dynamically changing the Open-AI model. #311
Answered
by
zainhoda
MinatoNamikaze02
asked this question in
Q&A
-
I was wondering whats the best way to do this. I want the user to be able to modify the model through the UI. I notice that the vanna object binded to the open-ai config. I want to change it without having to initialise and connect to db again. |
Beta Was this translation helpful? Give feedback.
Answered by
zainhoda
Mar 25, 2024
Replies: 1 comment 1 reply
-
Depending on your use case if you're using OpenAI, you can do this: vn.config["model"] = 'gpt-4-turbo-preview' This can be done anytime |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
zainhoda
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Depending on your use case if you're using OpenAI, you can do this:
This can be done anytime