Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions v3/llms/chat-completions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
proficiencyLevel="Intermediate"
keywords={["Eden AI", "AI API", "LLM API", "chat completion", "OpenAI compatible"]}
datePublished="2026-05-06T00:00:00Z"
dateModified="2026-08-31T00:00:00Z"
dateModified="2026-11-17T00:00:00Z"
/>

Build conversational AI applications using Eden AI's OpenAI-compatible chat completions endpoint.
Expand Down Expand Up @@ -79,7 +79,7 @@
};

const payload = {
model: 'openai/gpt-latest',

Check warning on line 82 in v3/llms/chat-completions.mdx

View check run for this annotation

Mintlify / Mintlify Validation (edenai) - vale-spellcheck

v3/llms/chat-completions.mdx#L82

Did you really mean 'openai'?
messages: [{role: 'user', content: 'Hello!'}]
};

Expand Down Expand Up @@ -187,7 +187,7 @@
{"role": "user", "content": "Write a creative story about a robot."}
],
"temperature": 0.9, # Higher = more creative (0-2)
"max_tokens": 500 # Limit response length

Check warning on line 190 in v3/llms/chat-completions.mdx

View check run for this annotation

Mintlify / Mintlify Validation (edenai) - vale-spellcheck

v3/llms/chat-completions.mdx#L190

Did you really mean 'max_tokens'?
}

response = requests.post(url, headers=headers, json=payload)
Expand All @@ -211,8 +211,8 @@

| Field | Type | Description |
| --- | --- | --- |
| `type` | string | `enabled` or `disabled`. |
| `budget_tokens` | integer | Maximum tokens Claude may spend thinking. Minimum **1024**, and it must be **greater than `max_completion_tokens`**. Counts toward your `max_tokens` limit. |
| `type` | string | `adaptive` (recommended for Claude 4.7+), `enabled`, or `disabled`. |
| `budget_tokens` | integer | Maximum tokens Claude may spend thinking. Minimum **1024**, and it must be **less than `max_completion_tokens`**. Counts toward your `max_tokens` limit. |

<CodeGroup>
```python Python
Expand Down
Loading