Typed parameters for chat LLM invocation.
# Source: https://github.com/zylon-ai/private-gpt | 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.
from typing import Any
from pydantic import BaseModel, ConfigDict, Field, field_serializer, field_validator
from private_gpt.components.llm.custom.base import (
StructuredOutputsParams,
normalize_structured_outputs,
)
from private_gpt.components.llm.models import ReasoningEffort
class ChatLLMParameters(BaseModel):
"""Typed parameters passed to the chat LLM.
These values are kept in the resumable chat state, so they must remain
typed when the state is dumped to JSON and restored for a later iteration.
Optional fields preserve the previous dict behavior: valu
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key