copilot-api-plus 1.4.7 → 1.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +2 -1
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -4157,8 +4157,9 @@ async function handleNativePassthrough(c, anthropicPayload) {
|
|
|
4157
4157
|
result = await createAnthropicMessages(injectIntoAnthropicPayload(stripSystemReminders(anthropicPayload)), { anthropicBeta });
|
|
4158
4158
|
} catch (error) {
|
|
4159
4159
|
if (isVertexStructuredOutputsBlock(error)) {
|
|
4160
|
+
const firstHit = !nativeBlockedModels.has(anthropicPayload.model);
|
|
4160
4161
|
nativeBlockedModels.add(anthropicPayload.model);
|
|
4161
|
-
consola.
|
|
4162
|
+
if (firstHit) consola.debug(`Native /v1/messages blocked by Vertex GCP policy for "${anthropicPayload.model}" — falling back to translated path (cached for this process)`);
|
|
4162
4163
|
return handleTranslatedCompletion(c, anthropicPayload);
|
|
4163
4164
|
}
|
|
4164
4165
|
consola.warn(`Native /v1/messages failed: ${error.message || String(error)}`);
|