fix: copilot annotation bug (#5882)

fix: copilot annotation
This commit is contained in:
Chen Tao 2025-05-11 23:04:29 +08:00 committed by GitHub
parent 60f261e30d
commit f549f39bb8

View File

@ -736,6 +736,8 @@ export default class OpenAICompatibleProvider extends BaseOpenAiProvider {
finalMetrics.time_completion_millsec += new Date().getTime() - start_time_millsec
finalMetrics.time_first_token_millsec = time_first_token_millsec - start_time_millsec
if (originalFinishDelta?.annotations) {
if (assistant.model?.provider === 'copilot') return
onChunk({
type: ChunkType.LLM_WEB_SEARCH_COMPLETE,
llm_web_search: {