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.
This commit is contained in:
Zachary Hou
2024-12-21 01:55:03 +08:00
parent eda10b1212
commit 4a6d8a3a9f
7 changed files with 675 additions and 137 deletions

2
.gitignore vendored
View File

@@ -28,3 +28,5 @@ dist-ssr
*.vars
.wrangler
_worker.bundle
.history