feat: add stateful responses API
This commit is contained in:
@@ -256,6 +256,7 @@ def prepare_dynamic_config(
|
||||
client_values: dict[str, Any] | None,
|
||||
*,
|
||||
assistant_id: str | None,
|
||||
conversation_id: str | None = None,
|
||||
timezone: str = "Asia/Shanghai",
|
||||
trusted_values: dict[str, Any] | None = None,
|
||||
) -> AssistantConfig:
|
||||
@@ -288,7 +289,7 @@ def prepare_dynamic_config(
|
||||
merged[name] = value
|
||||
merged.update(supplied)
|
||||
|
||||
conversation_id = f"conv_{uuid4().hex[:20]}"
|
||||
conversation_id = conversation_id or f"conv_{uuid4().hex[:20]}"
|
||||
merged.update(
|
||||
_system_values(
|
||||
assistant_id=assistant_id,
|
||||
|
||||
Reference in New Issue
Block a user