aboutsummaryrefslogtreecommitdiff
path: root/apps/docs/memory-router
diff options
context:
space:
mode:
authorDhravya Shah <[email protected]>2025-10-03 02:41:49 -0700
committerDhravya Shah <[email protected]>2025-10-03 02:41:49 -0700
commit4d6fd37c99fd6af46d2f1aedbeb750e0029b3b8b (patch)
tree869d415d87b152bfb5e55601311a2c8f6e64b6fc /apps/docs/memory-router
parentchore: fix docs again (diff)
downloadarchived-supermemory-4d6fd37c99fd6af46d2f1aedbeb750e0029b3b8b.tar.xz
archived-supermemory-4d6fd37c99fd6af46d2f1aedbeb750e0029b3b8b.zip
fix: model names
Diffstat (limited to 'apps/docs/memory-router')
-rw-r--r--apps/docs/memory-router/usage.mdx12
-rw-r--r--apps/docs/memory-router/with-memory-api.mdx4
2 files changed, 8 insertions, 8 deletions
diff --git a/apps/docs/memory-router/usage.mdx b/apps/docs/memory-router/usage.mdx
index 61dadfbf..68dad6f6 100644
--- a/apps/docs/memory-router/usage.mdx
+++ b/apps/docs/memory-router/usage.mdx
@@ -81,7 +81,7 @@ https://api.supermemory.ai/v3/https://api.groq.com/openai/v1/
# Use as normal
response = client.chat.completions.create(
- model="gpt-4",
+ model="gpt-5",
messages=[
{"role": "user", "content": "Hello!"}
]
@@ -106,7 +106,7 @@ https://api.supermemory.ai/v3/https://api.groq.com/openai/v1/
// Use as normal
const response = await client.chat.completions.create({
- model: 'gpt-4',
+ model: 'gpt-5',
messages: [
{ role: 'user', content: 'Hello!' }
]
@@ -124,7 +124,7 @@ https://api.supermemory.ai/v3/https://api.groq.com/openai/v1/
-H "x-sm-user-id: user123" \
-H "Content-Type: application/json" \
-d '{
- "model": "gpt-4",
+ "model": "gpt-5",
"messages": [{"role": "user", "content": "Hello!"}]
}'
```
@@ -162,7 +162,7 @@ curl -X POST "https://api.supermemory.ai/v3/https://api.openai.com/v1/chat/compl
-H "Authorization: Bearer YOUR_OPENAI_API_KEY" \
-H "x-supermemory-api-key: YOUR_SUPERMEMORY_API_KEY" \
-H "Content-Type: application/json" \
- -d '{"model": "gpt-4", "messages": [{"role": "user", "content": "Hello!"}]}'
+ -d '{"model": "gpt-5", "messages": [{"role": "user", "content": "Hello!"}]}'
```
</CodeGroup>
@@ -176,7 +176,7 @@ Use `x-sm-conversation-id` to maintain conversation context across requests:
```python
# Start a new conversation
response1 = client.chat.completions.create(
- model="gpt-4",
+ model="gpt-5",
messages=[{"role": "user", "content": "My name is Alice"}],
extra_headers={
"x-sm-conversation-id": "conv_123"
@@ -185,7 +185,7 @@ response1 = client.chat.completions.create(
# Continue the same conversation later
response2 = client.chat.completions.create(
- model="gpt-4",
+ model="gpt-5",
messages=[{"role": "user", "content": "What's my name?"}],
extra_headers={
"x-sm-conversation-id": "conv_123"
diff --git a/apps/docs/memory-router/with-memory-api.mdx b/apps/docs/memory-router/with-memory-api.mdx
index fcb09361..ae4396c2 100644
--- a/apps/docs/memory-router/with-memory-api.mdx
+++ b/apps/docs/memory-router/with-memory-api.mdx
@@ -40,7 +40,7 @@ router_client = OpenAI(
# Router automatically has access to the API-created memory
response = router_client.chat.completions.create(
- model="gpt-4",
+ model="gpt-5",
messages=[{"role": "user", "content": "What language should I use for my new backend?"}]
)
# Response will consider the Python preference
@@ -66,7 +66,7 @@ router_client = OpenAI(
# Agent has automatic access to product docs
response = router_client.chat.completions.create(
- model="gpt-4",
+ model="gpt-5",
messages=[{"role": "user", "content": "How does the enterprise pricing work?"}]
)
```