Added Param output_format in AI SDK (#2960)

This commit is contained in:
Saket Aryan
2025-06-15 06:42:56 +05:30
committed by GitHub
parent 18c870ec79
commit c7e91171a0
4 changed files with 44 additions and 1 deletions

View File

@@ -692,6 +692,11 @@ mode: "wide"
<Tab title="Vercel AI SDK"> <Tab title="Vercel AI SDK">
<Update label="2025-06-15" description="v1.0.6">
**New Features:**
- **Vercel AI SDK:** Added param `filter_memories`.
</Update>
<Update label="2025-05-23" description="v1.0.5"> <Update label="2025-05-23" description="v1.0.5">
**New Features:** **New Features:**
- **Vercel AI SDK:** Added support for Google provider. - **Vercel AI SDK:** Added support for Google provider.

View File

@@ -1,6 +1,6 @@
{ {
"name": "@mem0/vercel-ai-provider", "name": "@mem0/vercel-ai-provider",
"version": "1.0.4", "version": "1.0.6",
"description": "Vercel AI Provider for providing memory to LLMs", "description": "Vercel AI Provider for providing memory to LLMs",
"main": "./dist/index.js", "main": "./dist/index.js",
"module": "./dist/index.mjs", "module": "./dist/index.mjs",
@@ -28,6 +28,7 @@
"dependencies": { "dependencies": {
"@ai-sdk/anthropic": "1.1.12", "@ai-sdk/anthropic": "1.1.12",
"@ai-sdk/cohere": "1.1.12", "@ai-sdk/cohere": "1.1.12",
"@ai-sdk/google": "1.2.18",
"@ai-sdk/groq": "1.1.11", "@ai-sdk/groq": "1.1.11",
"@ai-sdk/openai": "1.1.15", "@ai-sdk/openai": "1.1.15",
"@ai-sdk/provider": "1.0.9", "@ai-sdk/provider": "1.0.9",

View File

@@ -14,6 +14,9 @@ importers:
'@ai-sdk/cohere': '@ai-sdk/cohere':
specifier: 1.1.12 specifier: 1.1.12
version: 1.1.12(zod@3.24.2) version: 1.1.12(zod@3.24.2)
'@ai-sdk/google':
specifier: 1.2.18
version: 1.2.18(zod@3.24.2)
'@ai-sdk/groq': '@ai-sdk/groq':
specifier: 1.1.11 specifier: 1.1.11
version: 1.1.11(zod@3.24.2) version: 1.1.11(zod@3.24.2)
@@ -84,6 +87,12 @@ packages:
peerDependencies: peerDependencies:
zod: ^3.0.0 zod: ^3.0.0
'@ai-sdk/google@1.2.18':
resolution: {integrity: sha512-8B70+i+uB12Ae6Sn6B9Oc6W0W/XorGgc88Nx0pyUrcxFOdytHBaAVhTPqYsO3LLClfjYN8pQ9GMxd5cpGEnUcA==}
engines: {node: '>=18'}
peerDependencies:
zod: ^3.0.0
'@ai-sdk/groq@1.1.11': '@ai-sdk/groq@1.1.11':
resolution: {integrity: sha512-Y5WUyWuxkQarl4AVGeIMbNSp4/XiwW/mxp9SKeagfDhflVnQHd2ggISVD6HiOBQhznusITjWYYC66DJeBn0v6A==} resolution: {integrity: sha512-Y5WUyWuxkQarl4AVGeIMbNSp4/XiwW/mxp9SKeagfDhflVnQHd2ggISVD6HiOBQhznusITjWYYC66DJeBn0v6A==}
engines: {node: '>=18'} engines: {node: '>=18'}
@@ -105,10 +114,20 @@ packages:
zod: zod:
optional: true optional: true
'@ai-sdk/provider-utils@2.2.8':
resolution: {integrity: sha512-fqhG+4sCVv8x7nFzYnFo19ryhAa3w096Kmc3hWxMQfW/TubPOmt3A6tYZhl4mUfQWWQMsuSkLrtjlWuXBVSGQA==}
engines: {node: '>=18'}
peerDependencies:
zod: ^3.23.8
'@ai-sdk/provider@1.0.9': '@ai-sdk/provider@1.0.9':
resolution: {integrity: sha512-jie6ZJT2ZR0uVOVCDc9R2xCX5I/Dum/wEK28lx21PJx6ZnFAN9EzD2WsPhcDWfCgGx3OAZZ0GyM3CEobXpa9LA==} resolution: {integrity: sha512-jie6ZJT2ZR0uVOVCDc9R2xCX5I/Dum/wEK28lx21PJx6ZnFAN9EzD2WsPhcDWfCgGx3OAZZ0GyM3CEobXpa9LA==}
engines: {node: '>=18'} engines: {node: '>=18'}
'@ai-sdk/provider@1.1.3':
resolution: {integrity: sha512-qZMxYJ0qqX/RfnuIaab+zp8UAeJn/ygXXAffR5I4N0n1IrvA6qBsjc8hXLmBiMV2zoXlifkacF7sEFnYnjBcqg==}
engines: {node: '>=18'}
'@ai-sdk/react@1.1.18': '@ai-sdk/react@1.1.18':
resolution: {integrity: sha512-2wlWug6NVAc8zh3pgqtvwPkSNTdA6Q4x9CmrNXCeHcXfJkJ+MuHFQz/I7Wb7mLRajf0DAxsFLIhHyBCEuTkDNw==} resolution: {integrity: sha512-2wlWug6NVAc8zh3pgqtvwPkSNTdA6Q4x9CmrNXCeHcXfJkJ+MuHFQz/I7Wb7mLRajf0DAxsFLIhHyBCEuTkDNw==}
engines: {node: '>=18'} engines: {node: '>=18'}
@@ -2751,6 +2770,12 @@ snapshots:
'@ai-sdk/provider-utils': 2.1.10(zod@3.24.2) '@ai-sdk/provider-utils': 2.1.10(zod@3.24.2)
zod: 3.24.2 zod: 3.24.2
'@ai-sdk/google@1.2.18(zod@3.24.2)':
dependencies:
'@ai-sdk/provider': 1.1.3
'@ai-sdk/provider-utils': 2.2.8(zod@3.24.2)
zod: 3.24.2
'@ai-sdk/groq@1.1.11(zod@3.24.2)': '@ai-sdk/groq@1.1.11(zod@3.24.2)':
dependencies: dependencies:
'@ai-sdk/provider': 1.0.9 '@ai-sdk/provider': 1.0.9
@@ -2772,10 +2797,21 @@ snapshots:
optionalDependencies: optionalDependencies:
zod: 3.24.2 zod: 3.24.2
'@ai-sdk/provider-utils@2.2.8(zod@3.24.2)':
dependencies:
'@ai-sdk/provider': 1.1.3
nanoid: 3.3.11
secure-json-parse: 2.7.0
zod: 3.24.2
'@ai-sdk/provider@1.0.9': '@ai-sdk/provider@1.0.9':
dependencies: dependencies:
json-schema: 0.4.0 json-schema: 0.4.0
'@ai-sdk/provider@1.1.3':
dependencies:
json-schema: 0.4.0
'@ai-sdk/react@1.1.18(react@19.1.0)(zod@3.24.2)': '@ai-sdk/react@1.1.18(react@19.1.0)(zod@3.24.2)':
dependencies: dependencies:
'@ai-sdk/provider-utils': 2.1.10(zod@3.24.2) '@ai-sdk/provider-utils': 2.1.10(zod@3.24.2)

View File

@@ -28,6 +28,7 @@ export interface Mem0ConfigSettings {
rerank?: boolean; rerank?: boolean;
enable_graph?: boolean; enable_graph?: boolean;
output_format?: string; output_format?: string;
filter_memories?: boolean;
} }
export interface Mem0ChatConfig extends Mem0ConfigSettings, Mem0ProviderSettings {} export interface Mem0ChatConfig extends Mem0ConfigSettings, Mem0ProviderSettings {}