-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
feat: enable OpenAI models #307
Closed
Closed
Commits on Oct 8, 2024
-
feat(llm): add support for OpenAI LLM
- Added OPENAI_API_KEY to the Env interface - Added OPENAI_API_KEY to package.json dependencies - Added @ai-sdk/openai to package.json dependencies - Added Prompts interface to prompts-interface.ts - Added Prompts implementation to anthropic-llm.ts and openai-llm.ts - Added LLMType enum to llm-selector.ts - Added selectLLM and getCurrentLLMType functions to llm-selector.ts - Added AnthropicLLM and OpenAILLM classes to anthropic-llm.ts and openai-llm.ts - Added getModel function to model.ts - Added streamText function to stream-text.ts - Updated chatAction function in api.chat.ts to use selectLLM and getCurrentLLMType
Configuration menu - View commit details
-
Copy full SHA for 6c1f7f4 - Browse repository at this point
Copy the full SHA 6c1f7f4View commit details -
Configuration menu - View commit details
-
Copy full SHA for aa50183 - Browse repository at this point
Copy the full SHA aa50183View commit details -
refactor(llm): update OpenAI LLM implementation
Refactor the OpenAI LLM implementation in the `openai-llm.ts` file. - Update the model selection logic to support both 'gpt-4o' and 'o1-mini' models. - Add conditional logic to handle different models and their respective prompts and options.
Configuration menu - View commit details
-
Copy full SHA for 6f8158a - Browse repository at this point
Copy the full SHA 6f8158aView commit details -
Configuration menu - View commit details
-
Copy full SHA for fa63e2c - Browse repository at this point
Copy the full SHA fa63e2cView commit details
Commits on Oct 9, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 87adb6f - Browse repository at this point
Copy the full SHA 87adb6fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1d6304a - Browse repository at this point
Copy the full SHA 1d6304aView commit details -
Configuration menu - View commit details
-
Copy full SHA for c744d2e - Browse repository at this point
Copy the full SHA c744d2eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4ff24e0 - Browse repository at this point
Copy the full SHA 4ff24e0View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.