Skip to content

Commit 765b666

Browse files
committed
fix: correct inputs value type
1 parent 8a35ae8 commit 765b666

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

dify_oapi/api/chatflow/v1/model/send_chat_message_request_body.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from typing import Any
2+
13
from pydantic import BaseModel
24

35
from .chat_file import ChatFile
@@ -6,7 +8,7 @@
68

79
class SendChatMessageRequestBody(BaseModel):
810
query: str | None = None
9-
inputs: dict[str, str] | None = None
11+
inputs: dict[str, Any] | None = None
1012
response_mode: ResponseMode | None = None
1113
user: str | None = None
1214
conversation_id: str | None = None

dify_oapi/api/workflow/v1/model/workflow_inputs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
int, # Integer values
1313
float, # Float values
1414
bool, # Boolean values
15+
WorkflowFileInfo, # Single file type variable
1516
list[WorkflowFileInfo], # File list type variables
1617
list[str], # String arrays
1718
dict[str, Union[str, int, float, bool]], # Object values

0 commit comments

Comments
 (0)