a lot
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user