Skip to content

Commit 8055ebe

Browse files
committed
Expand generate_dual_core_model note
1 parent 80d4250 commit 8055ebe

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/dstack/_internal/core/models/common.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ class CoreConfig:
3030
# for permissive parsing of the server responses.
3131
#
3232
# We define a func to generate CoreModel dynamically that can be used
33-
# to define custom config for both __request__ and __response__ models.
33+
# to define custom Config for both __request__ and __response__ models.
34+
# Note: Defining config in the model class directly overrides
35+
# pydantic-duality's base config, breaking __response__.
3436
def generate_dual_core_model(
3537
custom_config: Union[type, Mapping],
3638
) -> "type[CoreModel]":

0 commit comments

Comments
 (0)