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
refactor: Cerebras to use OpenAI client instead of SDK
- Changed CerebrasProvider to use AsyncOpenAI instead of AsyncCerebras SDK
- Simplified CerebrasModel by removing custom _completions_create override
- Updated dependency from cerebras-cloud-sdk to openai package
- Follows OpenRouter pattern for consistency
- Reduced codebase by ~200 lines while maintaining all functionality
- All Cerebras tests passing (5/5)
This aligns with Pydantic team's request to use OpenAI-compatible approach
and removes the need for a separate SDK dependency.
Copy file name to clipboardExpand all lines: docs/models/cerebras.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
## Install
4
4
5
-
To use `CerebrasModel`, you need to either install `pydantic-ai`, or install `pydantic-ai-slim` with the `cerebras` optional group (which installs the `cerebras-cloud-sdk`):
5
+
To use `CerebrasModel`, you need to either install `pydantic-ai`, or install `pydantic-ai-slim` with the `cerebras` optional group (which installs `openai`):
0 commit comments