mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 09:01:14 +00:00
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:
parent
9b8ea585bd
commit
da66a97ea7
6 changed files with 414 additions and 2 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue