Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
49428eb7
"backend/apps/vscode:/vscode.git/clone" did not exist on "25336f85f3caf6f193d4e7b48ee939d25f954cce"
Commit
49428eb7
authored
Apr 02, 2024
by
Timothy J. Baek
Browse files
fix: delete shared chat by id
parent
6c0e3972
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/lib/apis/chats/index.ts
src/lib/apis/chats/index.ts
+1
-1
No files found.
src/lib/apis/chats/index.ts
View file @
49428eb7
...
...
@@ -285,7 +285,7 @@ export const shareChatById = async (token: string, id: string) => {
export
const
deleteSharedChatById
=
async
(
token
:
string
,
id
:
string
)
=>
{
let
error
=
null
;
const
res
=
await
fetch
(
`
${
WEBUI_API_BASE_URL
}
/chats/
${
id
}
`
,
{
const
res
=
await
fetch
(
`
${
WEBUI_API_BASE_URL
}
/chats/
${
id
}
/share
`
,
{
method
:
'
DELETE
'
,
headers
:
{
Accept
:
'
application/json
'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment