Skip to content

Commit

Permalink
revert rest format change
Browse files Browse the repository at this point in the history
  • Loading branch information
JackieQi committed Oct 27, 2023
1 parent bb9ca06 commit 28d5312
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
1 change: 0 additions & 1 deletion XAgentServer/database/dbi.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,6 @@ def get_parameter(self, interaction_id: str):
parameters = self.db.query(Parameter).filter(Parameter.interaction_id == interaction_id).all()
return [InteractionParameter.from_db(param) for param in parameters]


def delete_interaction(self, interaction_id: str):
try:
interaction = self.db.query(Interaction).filter(Interaction.interaction_id == interaction_id).first()
Expand Down
2 changes: 1 addition & 1 deletion XAgentWeb/src/views/exception/mobile.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="exception-mobile flex-row">
<div class="logo flex-row flex-center">
<img src="@/assets/images/public/logo.png"
<img src="@/assets/images/public/logo.png"
alt="" width="35" height="35" />
</div>
<span>API Open Platform</span>
Expand Down
6 changes: 3 additions & 3 deletions XAgentWeb/src/views/login/login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
{ 'format-error': loginFormStatus.email.isFormatError && !loginFormStatus.email.isRequired },
]"
>
<input
<input
v-model="loginForm.email"
type="text"
class="plain-input email-input"
Expand Down Expand Up @@ -74,7 +74,7 @@
<div
v-show="false"
class="main-btn flex-row flex-center"
@click="registerNow">
@click="registerNow">
申请
</div>
</div>
Expand Down Expand Up @@ -267,7 +267,7 @@ const submit = async () => {
const res: any = await useLoginRequest(param);
isSubmitLoading.value = false
if (res?.success || res?.message === 'success') {
userStore.setUserInfo(res?.data)
authStore.setLoginState(true)
Expand Down
13 changes: 6 additions & 7 deletions XAgentWeb/src/views/playground/chat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<div v-else-if="role === 'AI'" class="result typed-box flex-row">
<img class="avatar round-corner-logo" alt="logo"
width="52" height="52"
width="52" height="52"
src="@/assets/images/playground/main-logo-avatar.png"/>
<div class="content">
<Tab
Expand All @@ -29,7 +29,8 @@
@disconnect="disConnectWebsocket"
@runSubtask="RunNextSubtask"
@runInner="RunNextinnerNode"
:isLatest="isLatest" :pageMode="pageMode"
:isLatest="isLatest"
:pageMode="pageMode"
/>
</div>
<div class="feedback-wrapper flex-row">
Expand Down Expand Up @@ -116,6 +117,7 @@ let pageMode = computed(() => {
return route.query.mode as string || '';
}); // Redirected from other page, playback, review, or start a new conversation
if(pageMode.value === "recorder") {
chatMsgInfoStore.setCurrentInput('Record Playing');
}
Expand Down Expand Up @@ -279,8 +281,6 @@ if(recorder_dir) {
}
const plainUrl = `${ protocol }//${ BACKEND_URL.replace('https://', '').replace('http://', '')
}/ws/${conversationId.value}?user_id=${user_id}&token=${token}&description=${
currentInput.value.substring(0, 26)}`;
const playbackUrl = `${ protocol }//${
Expand All @@ -293,7 +293,6 @@ const recordUrl = `${ protocol }//${ BACKEND_URL.replace('https://', '').replace
}/ws_do_recorder?user_id=${user_id}&token=${token}&recorder_dir=${recorder_dir}`;
const runShareUrl = `${ protocol }//${
BACKEND_URL.replace('https://', '').replace('http://', '')
}/ws_share/${
conversationId.value
Expand Down Expand Up @@ -1049,7 +1048,6 @@ const regenerate = () => {
padding-top: 10px;
background: rgb(240,241,250);
box-shadow: inset 0 1px 3px 0 #FFFFFF;
.input-box {
// width: 58vw;
width: 100%;
Expand Down Expand Up @@ -1078,6 +1076,7 @@ const regenerate = () => {
margin-right: 14px;
}
}
}
.warning {
Expand All @@ -1099,7 +1098,7 @@ const regenerate = () => {
}
}
}
}
.watermark {
Expand Down

0 comments on commit 28d5312

Please sign in to comment.