title: 'Large Language Models' sidebar_label: 'Large Language Models' description: 'Learn how to configure large language models (LLMs)' sidebar_position: 7 pagination_prev: null pagination_next: null tags:
Spice provides a high-performance, OpenAI API-compatible AI Gateway optimized for managing and scaling large language models (LLMs). It offers tools for Enterprise Retrieval-Augmented Generation (RAG), such as SQL query across federated datasets and an advanced search feature (see Search (opens in a new tab)).
Spice supports full OpenTelemetry observability, helping with detailed tracking of model tool use, recursion, data flows and requests for full transparency and easier debugging.
Add a language model to your spicepod.yaml to start using AI capabilities:
Start the runtime and use the chat REPL:
Or call the OpenAI-compatible HTTP API directly:
Spice supports a variety of LLMs (see Model Providers (opens in a new tab)).
ai() function for text generation tasks. See SQL Reference: ai function (opens in a new tab).v1/chat/completion (opens in a new tab). See Parameter Overrides (opens in a new tab).For API usage, refer to the API Documentation (opens in a new tab).
import DocCardList from '@theme/DocCardList';