fix: fix no meteringEntry date when no cot, and style

This commit is contained in:
Nex Zhu
2025-02-24 08:29:30 +08:00
parent ce333714b7
commit 8f27ca2e4e
6 changed files with 97 additions and 92 deletions

View File

@@ -101,8 +101,8 @@ export const getSystemPromptForWeb = async (
name: res.name,
url: res.url,
data_space: res.data_space,
content: res.content || res.description,
tokenCount: (res.content || res.description)?.length ?? 0,
content: res.content || res.description
}))
const iod_search_results = _iodSearchResults
@@ -140,8 +140,8 @@ export const getSystemPromptForWeb = async (
}
}),
iodSources: iodSearchResults,
iodData: _iodSearchResults,
iodDataTokenCount: _iodSearchResults.reduce((acc, cur) => (acc + cur.content.length), 0)
iodSearchResults: _iodSearchResults,
iodTokenCount: _iodSearchResults.reduce((acc, cur) => (acc + cur.content.length), 0)
}
} catch (e) {
console.error(e)