feat(ai): Add auto-generated TypeScript models with factory function

- Generate models.generated.ts from models.json with proper types
- Categorize providers: OpenAI (Responses), OpenAI-compatible, Anthropic, Gemini
- Create createLLM() factory with TypeScript overloads for type safety
- Auto-detect base URLs and environment variables for providers
- Support 353 models across 39 providers with full autocompletion
- Exclude generated file from git (rebuilt on npm build)
This commit is contained in:
Mario Zechner 2025-08-25 21:31:29 +02:00
parent 9b8ea585bd
commit da66a97ea7
6 changed files with 414 additions and 2 deletions

5
.gitignore vendored
View file

@ -21,4 +21,7 @@ packages/*/dist/
coverage/
.nyc_output/
.pi_config/
tui-debug.log
tui-debug.log
# Generated files
packages/ai/src/models.generated.ts