@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
|
@@ -59,14 +59,16 @@ export const PROVIDER_LABELS: Record<string, string> = {
|
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
|
-
* Map provider name →
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
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"
|
|
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
|
|