Skip to content

Commit fad2e8a

Browse files
committed
Rename OpenRouter and LiteLLM LlmApiType
1 parent f21f30b commit fad2e8a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/docs/ai/llm.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ litellm --config config.yml
175175

176176
```python
177177
cocoindex.LlmSpec(
178-
api_type=cocoindex.LlmApiType.LITELLM,
178+
api_type=cocoindex.LlmApiType.LITE_LLM,
179179
model="deepseek-r1",
180180
address="http://127.0.0.1:4000", # default url of LiteLLM
181181
)
@@ -198,7 +198,7 @@ A spec for OpenRouter looks like this:
198198

199199
```python
200200
cocoindex.LlmSpec(
201-
api_type=cocoindex.LlmApiType.OPENROUTER,
201+
api_type=cocoindex.LlmApiType.OPEN_ROUTER,
202202
model="deepseek/deepseek-r1:free",
203203
)
204204
```

python/cocoindex/llm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ class LlmApiType(Enum):
99
OLLAMA = "Ollama"
1010
GEMINI = "Gemini"
1111
ANTHROPIC = "Anthropic"
12-
LITELLM = "LiteLlm"
13-
OPENROUTER = "OpenRouter"
12+
LITE_LLM = "LiteLlm"
13+
OPEN_ROUTER = "OpenRouter"
1414

1515

1616
@dataclass

0 commit comments

Comments
 (0)