You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-2Lines changed: 23 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -126,8 +126,29 @@ agent = create_deep_agent(
126
126
127
127
### `model` (Optional)
128
128
129
-
By default, `deepagents` will use `"claude-sonnet-4-20250514"`. If you want to use a different model,
130
-
you can pass a [LangChain model object](https://python.langchain.com/docs/integrations/chat/).
129
+
By default, `deepagents` uses `"claude-sonnet-4-20250514"`. You can customize this by passing any [LangChain model object](https://python.langchain.com/docs/integrations/chat/).
130
+
131
+
#### Example: Using a Custom Model
132
+
133
+
Here's how to use a custom model (like OpenAI's `gpt-oss` model via Ollama):
134
+
135
+
(Requires `pip install langchain` and then `pip install langchain-ollama` for Ollama models)
0 commit comments