Find answers from the community

Updated 2 months ago

Is there an openai 1 x migration guide I

Is there an openai 1.x migration guide, I am currently in a trial-and-error mode, stepping onto landmines one after another, even after reading the openai 1.0 migration guide.
L
m
7 comments
like, for migrating a personal project to use their new api?

When migrating llama-index to use the new clients, I used their auto-migrate tool, and then used mypy to help identify any remaining errors.
The biggest changes for me were
a) no more globals, use a dedicated client,

b) azure has it's own client now, and

c) openai.error imports do not exist anymore
when migrating my code to the latest llama-index that uses openai 1.x
For example, what parameter changes would I need to make when calling llama-index, e.g., azure_endpoint in place of openai_base_url
Note that azure itself hasn't updated to handle the function calling changes yet :PSadge: So that is currently not working. Waiting on them to update with a new api_version
Add a reply
Sign up and join the conversation on Discord