OpenAI v4 SDK changes #2060
jacoblee93
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone,
OpenAI is in the process of creating a new v4 SDK. It's a significant improvement over their existing one in a number of ways (and will contain updated types), and we'd like to integrate it into the various OpenAI-related classes in LangChainJS.
However, the new SDK changes would require either unwieldy shims or breaking changes in the way parameters are passed in a few places. Currently, OpenAI v3 supports an Axios request config object directly passed into its constructor, but this no longer appears to be the case in the new SDK.
We're aiming to support as much overlap with old parameters as possible, but we'd love to hear what you're using so that we can apply shims and maintain support. Please reply below with any Axios-specific
OpenAI
,ChatOpenAI
, orOpenAIEmbeddings
arguments you'd like to keep using!Beta Was this translation helpful? Give feedback.
All reactions