spice-models

Configure AI/LLM model providers in Spice (OpenAI, Anthropic, Azure, Google, xAI, Bedrock, Perplexity, Databricks, local models). Use when asked to "add a model", "configure LLM", "set up OpenAI", "add language model", "enable chat completions", "serve local model", "add AI gateway", or "configure system prompt".

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "spice-models" with this command: npx skills add spiceai/skills/spiceai-skills-spice-models

Spice Model Providers

Model providers enable LLM chat completions and inference through a unified OpenAI-compatible API.

Basic Configuration

models:
  - from: <provider>:<model_id>
    name: <model_name>
    params:
      <provider>_api_key: ${ secrets:API_KEY }
      tools: auto # optional: enable runtime tools
      system_prompt: | # optional: default system prompt
        You are a helpful assistant.

Supported Providers

ProviderFrom FormatStatus
OpenAI (or compatible)openai:gpt-4oStable
Anthropicanthropic:claude-sonnet-4-5Alpha
Azure OpenAIazure:my-deploymentAlpha
Google AIgoogle:gemini-proAlpha
xAIxai:grok-betaAlpha
Perplexityperplexity:sonar-proAlpha
Amazon Bedrockbedrock:anthropic.claude-3Alpha
Databricksdatabricks:llama-3-70bAlpha
Spice.aispiceai:llama3Release Candidate
HuggingFacehf:meta-llama/Llama-3-8B-InstructRelease Candidate
Local filefile:./models/llama.ggufRelease Candidate

Features

FeatureDescription
ToolsSQL, search, memory, MCP, websearch
System PromptsDeclarative default system prompts
Parameterized PromptsJinja templating in system prompts
Parameter OverridesTemperature, response format, etc.
MemoryPersistent memory across conversations
EvalsEvaluate and track model performance
Local ServingCUDA/Metal accelerated local models

Examples

OpenAI with Tools

models:
  - from: openai:gpt-4o
    name: gpt4
    params:
      openai_api_key: ${ secrets:OPENAI_API_KEY }
      tools: auto

OpenAI-Compatible Provider (e.g., Groq)

models:
  - from: openai:llama3-groq-70b-8192-tool-use-preview
    name: groq-llama
    params:
      endpoint: https://api.groq.com/openai/v1
      openai_api_key: ${ secrets:GROQ_API_KEY }

Model with Memory

datasets:
  - from: memory:store
    name: llm_memory
    access: read_write

models:
  - from: openai:gpt-4o
    name: assistant
    params:
      openai_api_key: ${ secrets:OPENAI_API_KEY }
      tools: memory, sql

With System Prompt and Parameter Overrides

models:
  - from: openai:gpt-4o
    name: pirate_haikus
    params:
      system_prompt: |
        Write everything in Haiku like a pirate.
      openai_temperature: 0.1
      openai_response_format: "{ 'type': 'json_object' }"

Local Model (GGUF)

models:
  - from: file:./models/llama-3.gguf
    name: local_llama

Using Models

Chat Completions API (OpenAI-compatible)

curl http://localhost:8090/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt4",
    "messages": [{"role": "user", "content": "Hello"}]
  }'

Existing applications using OpenAI SDKs can swap endpoints without code changes.

NSQL (Text-to-SQL)

The /v1/nsql endpoint converts natural language to SQL and executes it. Spice uses tools like table_schema, random_sample, and sample_distinct_columns to help models write accurate, contextual SQL:

curl -XPOST "http://localhost:8090/v1/nsql" \
  -H "Content-Type: application/json" \
  -d '{"query": "What was the highest tip any passenger gave?"}'

CLI

spice chat
chat> Hello!

Documentation

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

spice-data-connector

No summary provided by upstream source.

Repository SourceNeeds Review
General

spicepod-config

No summary provided by upstream source.

Repository SourceNeeds Review
General

spice-accelerators

No summary provided by upstream source.

Repository SourceNeeds Review
General

spice-secrets

No summary provided by upstream source.

Repository SourceNeeds Review