fix: fix no meteringEntry date when no cot, and style
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user