Integrate LlamaIndex data framework with TrueFoundry’s AI Gateway for building LLM-powered applications
OpenAILike
and OpenAIEmbedding
classes from LlamaIndex. These classes are designed for custom OpenAI-compatible endpoints, allowing you to use your TrueFoundry-specific model names directly. Using the standard OpenAI
class will cause errors, as it validates model names against OpenAI’s public list.https://<control_plane_url>/api/llm/api/inference/openai
.Getting 'Unknown model, Please provide a valid OpenAI model name' error?
OpenAI
class from LlamaIndex instead of OpenAILike
. OpenAI
class strictly validates model names against OpenAI’s public list, so any custom or TrueFoundry-specific model name will result in this error. OpenAILike
class, which supports custom, OpenAI-compatible endpoints.