fix(ai): Improve ModelInfo types based on actual data structure

- Remove catch-all [key: string]: any from ModelInfo
- Make all required fields non-optional (attachment, reasoning, etc.)
- Add proper union types for modalities (text, image, audio, video, pdf)
- Mark only cost and knowledge fields as optional
- Export ModalityInput and ModalityOutput types
This commit is contained in:
Mario Zechner 2025-08-25 20:18:34 +02:00
parent 02a9b4f09f
commit 9b8ea585bd
3 changed files with 22 additions and 61 deletions

View file

@ -10,6 +10,8 @@ export {
getProviderInfo,
getProviderModels,
loadModels,
type ModalityInput,
type ModalityOutput,
type ModelInfo,
type ModelsData,
type ProviderInfo,