Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

620 B
Raw Blame
import pytest


@pytest.mark.asyncio
async def test_claude_code_plugin_table_schema_exists():

    with open("schema.prisma", "r") as f:
        schema = f.read()
    assert "LiteLLM_ClaudeCodePluginTable" in schema, (
        "LiteLLM_ClaudeCodePluginTable model missing from schema.prisma - "
        "this causes AttributeError on all /claude-code/plugins endpoints"
    )

    with open("litellm/proxy/schema.prisma", "r") as f:
        proxy_schema = f.read()
    assert (
        "LiteLLM_ClaudeCodePluginTable" in proxy_schema
    ), "LiteLLM_ClaudeCodePluginTable model missing from litellm/proxy/schema.prisma"