@mcowger/oh-my-pi-plexus 1.3.2 → 1.3.4

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 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:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcowger/oh-my-pi-plexus",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "Plexus AI proxy plugin for the Oh My Pi coding agent",
5
5
  "type": "module",
6
6
  "files": [