feat(antigravity): add model specs and update mapping logic

This commit is contained in:
Draculabo committed 2026-03-06 21:48:24 +08:00
1 parent 30e38dcb8b
commit 0a60c0eafa
11 files changed
+552 -82

No files matched your search

+3 -3
View File
@@ -165,21 +165,21 @@ class NonStreamingProcessor {
let groundingText = '';
if (grounding.webSearchQueries && grounding.webSearchQueries.length > 0) {
groundingText += `\n\n---\n**🔍 已为您搜索:** ${grounding.webSearchQueries.join(', ')}`;
groundingText += `\n\n---\n**🔍 Searched for you:** ${grounding.webSearchQueries.join(', ')}`;
}
if (grounding.groundingChunks) {
const links: string[] = [];
grounding.groundingChunks.forEach((chunk, index) => {
if (chunk.web) {
const title = chunk.web.title || '网页来源';
const title = chunk.web.title || 'Web source';
const uri = chunk.web.uri || '#';
links.push(`[${index + 1}] [${title}](${uri})`);
}
});
if (links.length > 0) {
groundingText += `\n\n**🌐 来源引文:**\n` + links.join('\n');
groundingText += `\n\n**🌐 Citations:**\n` + links.join('\n');
}
}