Closed kjfeng closed 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!
I'm marking this issue as closed. Please feel free to open / comment if further changes are required.
Would appreciate updating the
OpenAIModel
type to allow support for the latestgpt-4-turbo-preview
andgpt-4-1106-preview
models!