mirror of
https://github.com/stackblitz/bolt.new
synced 2025-06-26 18:17:50 +00:00
refactor(llm): update OpenAI LLM implementation and add support for o1-preview model
This commit is contained in:
parent
c744d2ec96
commit
4ff24e0065
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user