Apply suggestions from code review

Co-authored-by: Nate Goudreault <50588929+nate-goudreault@users.noreply.github.com>
This commit is contained in:
Carson Gee 2025-08-27 17:17:05 -06:00
parent bf55bf5072
commit f90072b226
No known key found for this signature in database
GPG key ID: EDE745BB7EED6C58

View file

@ -2,9 +2,11 @@ import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# DataRobot
LiteLLM supports all models from [DataRobot](https://datarobot.com). Selecting `datarobot` as the provider routes your request through the `datarobot` OpenAI-compatible endpoint using the upstream [official OpenAI Python API library](https://github.com/openai/openai-python/blob/main/README.md).
LiteLLM supports all models from [DataRobot](https://datarobot.com). Select `datarobot` as the provider to route your request through the `datarobot` OpenAI-compatible endpoint using the upstream [official OpenAI Python API library](https://github.com/openai/openai-python/blob/main/README.md).
## Usage - environment variables
## Usage
### Environment variables
```python
import os
from litellm import completion
@ -15,10 +17,9 @@ response = completion(
model="datarobot/openai/gpt-4o-mini",
messages=messages,
)
```
## Usage - completion
### Completion
```python
import litellm
import os
@ -35,8 +36,8 @@ response = litellm.completion(
print(response)
```
## DataRobot Completion Models
## DataRobot completion models
🚨 LiteLLM supports _all_ DataRobot LLM gateway models, to get a list for your installation and user account, you can send this simple CURL command:
🚨 LiteLLM supports _all_ DataRobot LLM gateway models. To get a list for your installation and user account, send the following CURL command:
`curl -X GET -H "Authorization: Bearer $DATAROBOT_API_TOKEN" "$DATAROBOT_ENDPOINT/genai/llmgw/catalog/" | jq | grep 'model":'DATAROBOT_ENDPOINT/genai/llmgw/catalog/`