Skip to content

Commit 1a704f1

Browse files
authored
fix: Workflow debugging for authorized applications will result in an error message indicating unauthorized access to the model (#2819)
1 parent 7ca0a7b commit 1a704f1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

apps/application/views/chat_views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class OpenWorkFlowTemp(APIView):
9797
tags=[_("Application/Chat")])
9898
def post(self, request: Request):
9999
return result.success(ChatSerializers.OpenWorkFlowChat(
100-
data={**request.data, 'user_id': request.user.id}).open())
100+
data={'user_id': request.user.id, **request.data}).open())
101101

102102
class OpenTemp(APIView):
103103
authentication_classes = [TokenAuth]

ui/src/components/ai-chat/index.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,10 @@ const openChatId: () => Promise<string> = () => {
268268
})
269269
} else {
270270
if (isWorkFlow(obj.type)) {
271+
console.log(obj)
271272
const submitObj = {
272-
work_flow: obj.work_flow
273+
work_flow: obj.work_flow,
274+
user_id: obj.user
273275
}
274276
return applicationApi.postWorkflowChatOpen(submitObj).then((res) => {
275277
chartOpenId.value = res.data

0 commit comments

Comments
 (0)