mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
18 lines
427 B
Python
18 lines
427 B
Python
from pydantic import BaseModel, Field
|
|
from pydantic_settings import BaseSettings
|
|
|
|
|
|
class PyProjectConfig(BaseModel):
|
|
version: str = Field(description="Dify version", default="")
|
|
|
|
|
|
class PyProjectTomlConfig(BaseSettings):
|
|
"""
|
|
configs in api/pyproject.toml
|
|
"""
|
|
|
|
project: PyProjectConfig = Field(
|
|
description="configs in the project section of pyproject.toml",
|
|
default=PyProjectConfig(),
|
|
)
|