@openpalm/lib 0.9.5 → 0.9.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openpalm/lib",
3
- "version": "0.9.5",
3
+ "version": "0.9.6",
4
4
  "license": "MPL-2.0",
5
5
  "type": "module",
6
6
  "description": "Shared control-plane library for OpenPalm — lifecycle, staging, secrets, channels, connections, scheduler",
@@ -59,14 +59,16 @@ export const PROVIDER_LABELS: Record<string, string> = {
59
59
  };
60
60
 
61
61
  /**
62
- * Map provider name → mem0-compatible provider name.
63
- * mem0 doesn't know "model-runner" or "lmstudio" both speak OpenAI protocol.
64
- * Ollama also maps to "openai" because Ollama exposes an OpenAI-compatible API
65
- * at /v1, and using provider "ollama" in mem0 requires the `ollama` Python
66
- * package which we don't install in the memory container.
62
+ * Map provider name → memory-package-compatible provider name.
63
+ * The memory package (@openpalm/memory) has native adapters for openai,
64
+ * ollama, and lmstudio. model-runner speaks OpenAI protocol so it maps
65
+ * to "openai". Ollama has its own adapter. LM Studio has its own adapter
66
+ * that avoids response_format (which LM Studio doesn't reliably support).
67
67
  */
68
68
  export function mem0ProviderName(provider: string): string {
69
- if (provider === "model-runner" || provider === "lmstudio" || provider === "ollama") return "openai";
69
+ if (provider === "model-runner") return "openai";
70
+ if (provider === "ollama") return "ollama";
71
+ if (provider === "lmstudio") return "lmstudio";
70
72
  return provider;
71
73
  }
72
74