feat(models): declare provider APIs and simplify preset configuration

This commit is contained in:
chengyongru authored and chengyongru committed 2026-10-10 01:33:02 +08:00
1 parent 592f0559a9
commit 994ce51502
26 files changed
+444 -123

No files matched your search

+1 -1
View File
@@ -83,7 +83,7 @@ class DreamConfig(Base):
class ModelAPIConfig(Base):
"""API support and preference scoped to a model preset's endpoint."""
"""Allowed request APIs and preference for a model preset's endpoint."""
supported_apis: tuple[RequestAPI, ...] = Field(min_length=1)
preferred_api: RequestAPI | None = None