From 10163bbf93b302aafda9dec3b3b293edf49f8e77 Mon Sep 17 00:00:00 2001 From: Marco De Rossi Date: Mon, 30 Nov 2026 00:38:50 +0100 Subject: [PATCH] docs: show TypesafeClassifier pointed at another systemone host TypesafeClassifier already takes base_url, so any service that serves /v1/systemone works with it unchanged. Add a short example under base_url using Levanto Sage. --- .../typesafe/typesafe_classifier/index.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/guides/integrations/typesafe/typesafe_classifier/index.md b/docs/guides/integrations/typesafe/typesafe_classifier/index.md index 38b024b638b..6fe0fd8f72b 100644 --- a/docs/guides/integrations/typesafe/typesafe_classifier/index.md +++ b/docs/guides/integrations/typesafe/typesafe_classifier/index.md @@ -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`.