@mcowger/oh-my-pi-plexus 1.3.2 → 1.3.3
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/extension.js +2 -2
- package/package.json +1 -1
package/dist/extension.js
CHANGED
|
@@ -108387,11 +108387,11 @@ function mapPreferredApi(raw) {
|
|
|
108387
108387
|
}
|
|
108388
108388
|
return "openai-completions";
|
|
108389
108389
|
}
|
|
108390
|
-
function adjustBaseUrl(baseUrl, preferredApi) {
|
|
108390
|
+
function adjustBaseUrl(baseUrl, preferredApi, anthropicBaseStyle = "root") {
|
|
108391
108391
|
const stripped = baseUrl.replace(/\/+$/, "");
|
|
108392
108392
|
switch (preferredApi) {
|
|
108393
108393
|
case "anthropic-messages":
|
|
108394
|
-
return stripped.endsWith("/v1") ? stripped.slice(0, -3) : stripped;
|
|
108394
|
+
return anthropicBaseStyle === "root" && stripped.endsWith("/v1") ? stripped.slice(0, -3) : stripped;
|
|
108395
108395
|
case "google-generative-ai":
|
|
108396
108396
|
return stripped.endsWith("/v1") ? `${stripped.slice(0, -3)}/v1beta` : stripped;
|
|
108397
108397
|
default:
|