bolt.new/worker-configuration.d.ts
Zachary Hou 4a6d8a3a9f feat: enhance AI model integration and configuration
- Added support for OpenAI alongside existing Anthropic model.
- Introduced environment variables for API key, base URL, model, and AI provider.
- Updated model selection logic to accommodate multiple AI providers.
- Refactored model functions to streamline API key retrieval and model initialization.
- Enhanced sidebar component by removing unused imports.

Additionally, updated package dependencies and added a new entry to .gitignore for history files.
2024-12-21 01:55:03 +08:00

8 lines
126 B
TypeScript

interface Env {
ANTHROPIC_API_KEY: string;
API_KEY: string;
BASE_URL: string;
MODEL: string;
AI_PROVIDER: string;
}