Expose model description

This commit is contained in:
Alex Gleason committed 2025-09-20 12:12:26 -05:00
1 parent c5f74ceafc
commit 62f5a4fe87
1 file changed
+5
+5
View File
@@ -10,6 +10,7 @@ interface ProviderModel {
name: string;
provider: string;
fullId: string; // provider/model format
description?: string;
/** Maximum size of context window, if available */
contextLength?: number;
/** Pricing information, if available */
@@ -62,6 +63,10 @@ export function useProviderModels(): ModelFetchResult {
fullId: `${providerKey}/${model.id}`,
};
if ('description' in model && typeof model.description === 'string') {
providerModel.description = model.description;
}
if ('context_length' in model && typeof model.context_length === 'number') {
providerModel.contextLength = model.context_length;
}