Venice Models
Generate and update model TOMLs from Venice AI's API.
Prerequisites
- Install Bun: https://bun.sh
- (Optional) Venice API key with alpha access to retrieve alpha models
Commands
- Generate/update files:
bun run venice:generate - Dry run (preview changes):
bun run venice:generate --dry-run - With API key:
bun run venice:generate --api-key=YOUR_KEY
API Key The script can include alpha models when provided with a Venice API key with alpha access. Key can be provided via:
- CLI argument:
--api-key=YOUR_KEYor--api-key YOUR_KEY - Environment variable:
VENICE_API_KEY
Details
- Source endpoint:
https://api.venice.ai/api/v1/models?type=text - Output path:
providers/venice/models/<model-id>.toml - Merge behavior: Updates API-sourced fields, preserves manual fields
- Dates:
release_date/last_updateduseYYYY-MM-DD;knowledgeusesYYYY-MM - Output limit: Sourced from
maxCompletionTokensin the API response (falls back tocontext / 4if absent)
Preserved Fields (manual input)
family: Inferred from model ID if not already setknowledge: Knowledge cutoff date (never auto-set)interleaved: Reasoning interleaving configstatus: Model status (alpha, beta, deprecated)- PDF in
modalities.input: Not auto-added, preserved if exists
Notes
- The generator merges with existing files rather than replacing them
- Orphaned files (not in API) are warned about but not deleted
- Run with
--dry-runto preview changes before applying