bolt.new/worker-configuration.d.ts
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

6 lines
93 B
TypeScript

interface Env {
ANTHROPIC_API_KEY: string;
OPENAI_API_KEY: string;
LLM_TYPE: string;
}