diff --git a/src/libs/agent-runtime/utils/openaiCompatibleFactory/index.ts b/src/libs/agent-runtime/utils/openaiCompatibleFactory/index.ts index 111b3bf42afbf..e2b70de949973 100644 --- a/src/libs/agent-runtime/utils/openaiCompatibleFactory/index.ts +++ b/src/libs/agent-runtime/utils/openaiCompatibleFactory/index.ts @@ -281,6 +281,7 @@ export const LobeOpenAICompatibleFactory = = any> const toReleasedAt = () => { if (!item.created) return; + dayjs.extend(utc); // guarantee item.created in Date String format if ( @@ -299,8 +300,6 @@ export const LobeOpenAICompatibleFactory = = any> const knownModel = LOBE_DEFAULT_MODEL_LIST.find((model) => model.id === item.id); if (knownModel) { - dayjs.extend(utc); - const releasedAt = knownModel.releasedAt ?? toReleasedAt(); return { ...knownModel, releasedAt };