From 4ff24e006586c07583149c3db7864d4886731edc Mon Sep 17 00:00:00 2001 From: bjc Date: Tue, 8 Oct 2024 17:41:17 -0700 Subject: [PATCH] refactor(llm): update OpenAI LLM implementation and add support for o1-preview model --- CONTRIBUTING.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ef4141c..2a67a7b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -35,6 +35,14 @@ models. At this time, Bolt supports using Anthropic's Claude Sonnet 3.5. You can get an API key from the [Anthropic API Console](https://console.anthropic.com/) to use with Bolt. Take a look at how [Bolt uses the AI SDK](https://github.com/stackblitz/bolt.new/tree/main/app/lib/.server/llm) +Preliminary support for OpenAI gpt-4o, gpt-4o-mini, o1-preview, and o1-mini is usable, YMMV. Be sure to set + +LLM_TYPE=openai + +OPENAI_MODEL=gpt-4o // or other + +OPENAI_API_KEY=sk-... // your key + ## Prerequisites Before you begin, ensure you have the following installed: