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 FE to comply with OpenAI Spec #17

Merged
merged 14 commits into from
Jun 4, 2024

Conversation

estohlmann
Copy link
Member

Updating the FE to use new V2 Open AI endpoints

Description of changes:

  1. Switch over to using @langchain/OpenAI Chat library instead of the custom LISA adapter that was tailored to TGI
  2. Updated to widely supported Chat API vs legacy Completions API
  3. Updated ModelKwargs to support nullable OpenAI fields and their API field descriptions
  4. Removed un-needed custom object types the UI was tightly coupled to ie ModelProvider
  5. Update configuration documentation references to point to v2 endpoints

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Comment on lines 4 to +5
langchain==0.1.0
langchain-openai==0.0.6
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a heads up that we may want to look into updating these since they're a bit old and the OpenAIEmbeddings client is on a deprecation path. Not a blocker for now (especially since I'm the one that committed that), but will possibly do a pass before official release to ensure we're not too old on requirements versions.

@estohlmann estohlmann merged commit b7a4be5 into main Jun 4, 2024
2 checks passed
@estohlmann estohlmann deleted the feature/update-fe-to-openai-spec branch June 4, 2024 20:29
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.

3 participants