Closed sasensi closed 10 months ago
š¤
Thank you for your detailed feature request! It's great to see your enthusiasm for incorporating the new OpenAI model gpt-4-0125-preview
into the project. Your proposed solution looks promising, and it's wonderful that you're willing to take care of the PR if necessary. Your contribution would be highly appreciated. Keep up the great work!
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a š if this is helpful and š if it is irrelevant.
If you want to continue the conversation, start your reply with @dosu-bot.
Feature Description
I would like to use the latest model from OpenAI:
gpt-4-0125-preview
, published yesterday. You can see it announced in this blog post and listed on this page.Reason
Currently, if you run the following script:
You receive this error:
Value of Feature
The new model include a fix allowing to use other language than english in json output.
The change to make seems to be quite simple, I tried it by updating the
venv/Lib/site-packages/llama_index/llms/openai_utils.py
file locally as such: Update this piece of code from:to
Note that they also introduce a
gpt-4-turbo-preview
model, which could be added the same way and would be great to have also.I can take care of the PR if this is the right change and if needed. Thank you in advance.