nlkitai / nlux

The π—£π—Όπ˜„π—²π—Ώπ—³π˜‚π—Ή Conversational AI JavaScript Library πŸ’¬ β€”Β UI for any LLM, supporting LangChain / HuggingFace / Vercel AI, and more 🧑 React, Next.js, and plain JavaScript ⭐️
https://docs.nlkit.com/nlux
Other
943 stars 48 forks source link

Add updates for latest GPT models #33

Closed kjfeng closed 4 months ago

kjfeng commented 4 months ago

Would appreciate updating the OpenAIModel type to allow support for the latest gpt-4-turbo-preview and gpt-4-1106-preview models!

salmenus commented 4 months ago

Hi @kjfeng

I updated the OpenAI adapter to match the latest OpenAI adapters exposed via their JS library.
Commit here

You can see that the mentions versions gpt-4-turbo-preview and gpt-4-1106-preview are in that list.
But most importantly, you can enter any string as a model (which makes it future proof).

This change is published in @nlux/openai and @nlux/openai-react NPM packages version 0.12.2 and later.

PS: In the future, for small changes like this, feel free to just create a pull request against the main nlux repo, You will also get your name in the list of contributors ;)

Thank you for helping improve this OSS project
Happy coding!

salmenus commented 4 months ago

I'm marking this issue as closed. Please feel free to open / comment if further changes are required.