refactor(models): replace ConfigDict with SQLModelConfig for model configuration

This commit is contained in:
Abhimanyu Saharan
2026-02-15 02:16:17 +05:30
parent 395d215dac
commit 3bfefeda9f
4 changed files with 25 additions and 21 deletions

View File

@@ -2,14 +2,15 @@
from __future__ import annotations
from pydantic import ConfigDict, Field
from pydantic import Field
from sqlmodel import SQLModel
from sqlmodel._compat import SQLModelConfig
class LLMErrorResponse(SQLModel):
"""Standardized LLM-facing error payload used by API contracts."""
model_config = ConfigDict(
model_config = SQLModelConfig(
json_schema_extra={
"title": "LLMErrorResponse",
"x-llm-intent": "llm_error_handling",