Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update nuxt and nuxt examples #2186

Merged
merged 6 commits into from
Jul 8, 2024

Conversation

gmickel
Copy link
Contributor

@gmickel gmickel commented Jul 6, 2024

Update Nuxt and Nuxt Examples

This PR updates all of the Nuxt examples except the function-calling example (as the onToolCall callback and tools implementation isn't yet available in the Vue library). This PR should allow us to continue work on issues such as #2040 .

Changes

  • Chore: Update all Nuxt example dependencies
  • Examples: Update the chat, completion, and chat-with-vision examples to use non-deprecated OpenAI models
  • Examples: Update the aforementioned examples to use non-deprecated core functions (OpenAIStream -> streamText)
  • Examples: Update the aforementioned examples to use createOpenAI

Testing

No new tests have been added as this PR primarily focuses on updating existing examples. However, all updated examples have been manually tested to ensure they function correctly with the new changes.

Documentation

The example files themselves serve as updated documentation for the changes made. Users referring to these examples will now see the most up-to-date usage of the library with Nuxt.

Feedback

Any feedback or suggestions for improvement are welcome!

Copy link
Collaborator

@lgrammel lgrammel left a comment

Choose a reason for hiding this comment

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

Thank you!!

@lgrammel lgrammel merged commit 7e83d75 into vercel:main Jul 8, 2024
7 of 8 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