Skip to content

Conversation

@james-deee
Copy link
Contributor

Upgrades the OpenAI client library version to the latest 4.91.1. As a result, there are some typing issues that needed to be resolved. The 2 main things that needed to be fixed up:

  1. Added a util method to convert the content of an OpenAI message to just a string. This either returns the string, or combines the strings together.
  2. added refusal: null for assistant messages in the non-openai handlers.

tool_call_id: 'call_lhMKBlOSnwwq5BZDCGo5SVTJ',
role: 'tool',
content: [
{ text: '{"temperature":"100","unit":"fahrenheit"}', type: 'text' },
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ensures that either a string or an array of these content parts works

Fix typescript issues

reset pnpm-lock to match more with main
@james-deee james-deee force-pushed the jd/upgrade-client-sdks branch from e4dff9d to c17b56a Compare April 8, 2025 00:20
Copy link
Contributor

@RPate97 RPate97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you!

@RPate97 RPate97 merged commit 93e2322 into token-js:main Apr 9, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants