Find answers from the community

Updated 6 months ago

Is there an openai 1 x migration guide I

At a glance

The community member is looking for a migration guide to transition their project from OpenAI 1.0 to the newer 1.x version. Other community members have shared their experiences, noting that the biggest changes include no more globals, using a dedicated client, and changes to the Azure client and error imports.

One community member mentioned using the auto-migrate tool in llama-index and mypy to identify and fix errors when migrating. Another community member pointed to the Azure OpenAI guide in the llama-index documentation as a reference, but noted that Azure itself has not yet updated to handle the function calling changes, so that is currently not working.

Useful resources
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