Files
cc-switch/src-tauri/src
T
Jason 58ecc44ee6 feat(opencode): Phase 2 - Add OpenCode provider data structures
Add OpenCode-specific configuration structures for the AI SDK format:

- OpenCodeProviderConfig: Main config with npm package, options, and models
- OpenCodeProviderOptions: baseURL, apiKey, and headers support
- OpenCodeModel: Model definition with name and token limits
- OpenCodeModelLimit: Context and output token limits

Key features:
- Supports environment variable references (e.g., "{env:API_KEY}")
- Custom headers support for specialized providers
- Model-level token limits for context management
- Helper methods for parsing and validation
58ecc44ee6 ยท 2026-01-15 15:59:44 +08:00
History
..
2026-01-11 20:50:54 +08:00
2025-12-31 22:57:00 +08:00
2025-11-22 19:18:35 +08:00
2025-12-05 11:26:41 +08:00