This commit is contained in:
2026-07-21 01:31:53 -05:00
parent fafc502aeb
commit 4e7e86a3be
11 changed files with 254 additions and 13 deletions
+1
View File
@@ -140,6 +140,7 @@ export function translateAnthropicModels(payload) {
object: 'list',
data: (payload.data || []).map((model) => ({
id: model.id, display_name: model.name || model.id, created_at: new Date((model.created || 0) * 1000 || Date.now()).toISOString(), type: 'model',
context_length: model.context_length, context_window: model.context_window, max_context_tokens: model.max_context_tokens,
})),
has_more: false, first_id: payload.data?.[0]?.id, last_id: payload.data?.at(-1)?.id,
};