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

feat: enable OpenAI models #307

Closed
wants to merge 8 commits into from
Closed

Commits on Oct 8, 2024

  1. 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
    beejaysea committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    6c1f7f4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    aa50183 View commit details
    Browse the repository at this point in the history
  3. 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.
    beejaysea committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    6f8158a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    fa63e2c View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2024

  1. Configuration menu
    Copy the full SHA
    87adb6f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1d6304a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c744d2e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4ff24e0 View commit details
    Browse the repository at this point in the history