Commit Graph

10 Commits

Author SHA1 Message Date
bjc
fa63e2caf2 refactor(llm): update OpenAI LLM implementation and add support for o1-preview model 2024-10-08 07:15:41 -07:00
bjc
6f8158a8d1 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.
2024-10-08 07:15:36 -07:00
bjc
aa50183dd8 feat(llm): update ai package to version 3.4.9 2024-10-08 07:15:32 -07:00
bjc
6c1f7f4502 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
2024-10-08 07:15:26 -07:00
Sam Denty
31c07c06cb fix(npm): fix hanging shells (#159) 2024-10-07 16:24:29 +02:00
Sam Denty
efcb93d6d8 fix(npm): fix hanging shells (#153) 2024-10-07 14:51:16 +01:00
Yoel Cabo López
24074762c7 fix: remove logout button (#130) 2024-10-07 10:54:24 +02:00
Sam Denty
50885b065d fix(browser-extensions): don't render directly in body 2024-10-07 10:49:31 +02:00
Sam Denty
2a29fbbe82 feat: remove authentication (#1) 2024-09-26 17:45:41 +01:00
Sam Denty
6fb59d2bc5 fix: remove monorepo 2024-09-25 19:54:09 +01:00