mirror of
https://github.com/stackblitz/bolt.new
synced 2025-06-26 18:17:50 +00:00
- 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
6 lines
93 B
TypeScript
6 lines
93 B
TypeScript
interface Env {
|
|
ANTHROPIC_API_KEY: string;
|
|
OPENAI_API_KEY: string;
|
|
LLM_TYPE: string;
|
|
}
|