LLMModelConfigData (schemas/model.py)

valuecell · python/valuecell/server/api/schemas/model.py · python · Apache-2.0
ai

Pydantic schemas for LLM model configuration and provider management.

# Source: https://github.com/ValueCell-ai/valuecell | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
"""Model-related API schemas."""

from typing import Any, Dict, List, Optional

from pydantic import BaseModel, Field


class LLMModelConfigData(BaseModel):
    """LLM model configuration used by frontend to prefill UserRequest.

    This is a relaxed version of agents.strategy_agent.models.LLMModelConfig,
    allowing `api_key` to be optional so the API can return defaults
    even when user credentials are not provided.
    """

    provider: str = Field(
        ..., description="Model provider, e.g. 'openrouter', 'google', 'openai'"
    )
    model_id: str = Field(
        ...,
 

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key