deps(ts-sdk): Updates Google SDK Peer Dependency Version (#2878)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "mem0ai",
|
||||
"version": "2.1.27",
|
||||
"version": "2.1.28",
|
||||
"description": "The Memory Layer For Your AI Apps",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.mjs",
|
||||
@@ -98,7 +98,7 @@
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@anthropic-ai/sdk": "^0.40.1",
|
||||
"@google/genai": "^0.7.0",
|
||||
"@google/genai": "^1.2.0",
|
||||
"@mistralai/mistralai": "^1.5.2",
|
||||
"@qdrant/js-client-rest": "1.13.0",
|
||||
"@supabase/supabase-js": "^2.49.1",
|
||||
|
||||
682
mem0-ts/pnpm-lock.yaml
generated
682
mem0-ts/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -159,10 +159,7 @@ export default class MemoryClient {
|
||||
return jsonResponse;
|
||||
}
|
||||
|
||||
_preparePayload(
|
||||
messages: Array<Message>,
|
||||
options: MemoryOptions,
|
||||
): object {
|
||||
_preparePayload(messages: Array<Message>, options: MemoryOptions): object {
|
||||
const payload: any = {};
|
||||
payload.messages = messages;
|
||||
return { ...payload, ...options };
|
||||
|
||||
@@ -78,7 +78,7 @@ export class ConfigManager {
|
||||
} else if (userConf?.model && typeof userConf.model === "string") {
|
||||
finalModel = userConf.model;
|
||||
}
|
||||
|
||||
|
||||
return {
|
||||
baseURL: userConf?.baseURL || defaultConf.baseURL,
|
||||
apiKey:
|
||||
|
||||
@@ -7,7 +7,10 @@ export class OpenAILLM implements LLM {
|
||||
private model: string;
|
||||
|
||||
constructor(config: LLMConfig) {
|
||||
this.openai = new OpenAI({ apiKey: config.apiKey, baseURL: config.baseURL });
|
||||
this.openai = new OpenAI({
|
||||
apiKey: config.apiKey,
|
||||
baseURL: config.baseURL,
|
||||
});
|
||||
this.model = config.model || "gpt-4o-mini";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user