fix: nest model_id/provider_id under model key in SessionInitParams

This commit is contained in:
Wang ChengMeng 2026-06-06 12:39:08 +00:00
parent 736c9e5ac4
commit c914b7bb98

View file

@ -5,6 +5,7 @@ from __future__ import annotations
from typing_extensions import Required, Annotated, TypedDict
from .._utils import PropertyInfo
from .session_chat_params import ModelParam
__all__ = ["SessionInitParams"]
@ -12,6 +13,4 @@ __all__ = ["SessionInitParams"]
class SessionInitParams(TypedDict, total=False):
message_id: Required[Annotated[str, PropertyInfo(alias="messageID")]]
model_id: Required[Annotated[str, PropertyInfo(alias="modelID")]]
provider_id: Required[Annotated[str, PropertyInfo(alias="providerID")]]
model: Required[ModelParam]