Skip to content

Commit

Permalink
点踩点赞type改为非必填
Browse files Browse the repository at this point in the history
  • Loading branch information
userpj committed Feb 18, 2025
1 parent 9f72836 commit 105b524
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go/appbuilder/app_builder_client_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ type AppBuilderClientFeedbackRequest struct {
AppID string `json:"app_id"`
ConversationID string `json:"conversation_id"`
MessageID string `json:"message_id"`
Type string `json:"type,omitempty"`
Type string `json:"type"`
Flag []string `json:"flag,omitempty"`
Reason string `json:"reason,omitempty"`
}
Expand Down
2 changes: 1 addition & 1 deletion python/core/console/appbuilder_client/appbuilder_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def feedback(
self,
conversation_id: str,
message_id: str,
type: str = None,
type: str,
flag: list[str] = None,
reason: str = None,
):
Expand Down
4 changes: 2 additions & 2 deletions python/core/console/appbuilder_client/data_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,8 @@ class FeedbackRequest(BaseModel):
app_id: str = Field(..., description="应用ID")
conversation_id: str = Field(..., description="对话ID")
message_id: str = Field(..., description="对应的消息ID")
type: Optional[str] = Field(
None,
type: str = Field(
...,
description="点赞点踩枚举值 cancel:取消评论, upvote:点赞, downvote:点踩",
)
flag: Optional[list[str]] = Field(
Expand Down

0 comments on commit 105b524

Please sign in to comment.