File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ litellm --config config.yml
175175
176176``` python
177177cocoindex.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
200200cocoindex.LlmSpec(
201- api_type = cocoindex.LlmApiType.OPENROUTER ,
201+ api_type = cocoindex.LlmApiType.OPEN_ROUTER ,
202202 model = " deepseek/deepseek-r1:free" ,
203203)
204204```
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments