MCPcopy
hub / github.com/VectifyAI/PageIndex / _normalize_retrieve_model

Function _normalize_retrieve_model

pageindex/client.py:18–25  ·  view source on GitHub ↗

Preserve supported Agents SDK prefixes and route other provider paths via LiteLLM.

(model: str)

Source from the content-addressed store, hash-verified

16
17
18def _normalize_retrieve_model(model: str) -> str:
19 """Preserve supported Agents SDK prefixes and route other provider paths via LiteLLM."""
20 passthrough_prefixes = ("litellm/", "openai/")
21 if not model or "/" not in model:
22 return model
23 if model.startswith(passthrough_prefixes):
24 return model
25 return f"litellm/{model}"
26
27
28class PageIndexClient:

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected