Skip to content
Open
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
12 changes: 12 additions & 0 deletions docs/guides/integrations/typesafe/typesafe_classifier/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,18 @@ The classifier picks the base URL in this order:
3. The `TYPESAFE_BASE_URL` environment variable.
4. `https://api.typesafe.ai`.

Other services that serve the `/v1/systemone` API work through `base_url`, such as [Levanto Sage](https://docs.levanto.ai/integrations/google-adk):

```python
import os

classifier = TypesafeClassifier(
model="sage-latest",
base_url="https://api.levanto.ai",
api_key=os.environ["LEVANTO_API_KEY"],
)
```

### timeout

`timeout` applies to each attempt, not to the whole call with its retries. When it is not set, a request uses the timeout of `http_client`, or 30 seconds when there is no `http_client`.
Expand Down