Kaynağa Gözat

fix(web-search): clarify endpoint recovery guidance

creatixchu 1 ay önce
ebeveyn
işleme
f55c676485

+ 2 - 2
packages/web/web-search-deepseek/src/provider.ts

@@ -314,8 +314,8 @@ function searchEndpointError(endpoint: string, message: string, cause?: unknown)
   return new WebError(
   return new WebError(
     `${message}\n\nThe web search request used endpoint ${JSON.stringify(endpoint)}. `
     `${message}\n\nThe web search request used endpoint ${JSON.stringify(endpoint)}. `
     + 'Search endpoint configuration is separate from chat. If that endpoint is not intended, '
     + 'Search endpoint configuration is separate from chat. If that endpoint is not intended, '
-    + 'tell the user to set DEEPSEEK_SEARCH_BASE_URL or web-search-deepseek.baseURL to a trusted '
-    + 'Anthropic-compatible Messages API base. Do not choose or change the endpoint for them.',
+    + 'the user can set DEEPSEEK_SEARCH_BASE_URL or web-search-deepseek.baseURL to a trusted '
+    + 'Anthropic-compatible Messages API base. Only the user should choose or change the endpoint.',
     'WEB_PROVIDER_ERROR',
     'WEB_PROVIDER_ERROR',
     cause === undefined ? undefined : { cause },
     cause === undefined ? undefined : { cause },
   )
   )

+ 2 - 2
packages/web/web-search-deepseek/tests/deepseek.spec.ts

@@ -338,8 +338,8 @@ describe('DeepSeekSearchProvider error handling', () => {
         message: 'DeepSeek API error (HTTP 429): rate limited\n\n'
         message: 'DeepSeek API error (HTTP 429): rate limited\n\n'
           + 'The web search request used endpoint "https://api.deepseek.test/anthropic/v1/messages". '
           + 'The web search request used endpoint "https://api.deepseek.test/anthropic/v1/messages". '
           + 'Search endpoint configuration is separate from chat. If that endpoint is not intended, '
           + 'Search endpoint configuration is separate from chat. If that endpoint is not intended, '
-          + 'tell the user to set DEEPSEEK_SEARCH_BASE_URL or web-search-deepseek.baseURL to a trusted '
-          + 'Anthropic-compatible Messages API base. Do not choose or change the endpoint for them.',
+          + 'the user can set DEEPSEEK_SEARCH_BASE_URL or web-search-deepseek.baseURL to a trusted '
+          + 'Anthropic-compatible Messages API base. Only the user should choose or change the endpoint.',
       }))
       }))
   })
   })
 
 

Dosya farkı çok büyük olduğundan ihmal edildi
+ 5 - 13
snapshots/session/web-search-endpoint-guidance/session.jsonl


Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor