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
681fd4ff
"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "f753db603bb6b08aa002df95db988d124f5dfed5"
Commit
681fd4ff
authored
Jun 12, 2024
by
Timothy J. Baek
Browse files
fix: tools api
parent
c7d3969a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/lib/apis/tools/index.ts
src/lib/apis/tools/index.ts
+1
-1
No files found.
src/lib/apis/tools/index.ts
View file @
681fd4ff
...
@@ -34,7 +34,7 @@ export const createNewTool = async (token: string, tool: object) => {
...
@@ -34,7 +34,7 @@ export const createNewTool = async (token: string, tool: object) => {
export
const
getTools
=
async
(
token
:
string
=
''
)
=>
{
export
const
getTools
=
async
(
token
:
string
=
''
)
=>
{
let
error
=
null
;
let
error
=
null
;
const
res
=
await
fetch
(
`
${
WEBUI_API_BASE_URL
}
/tools`
,
{
const
res
=
await
fetch
(
`
${
WEBUI_API_BASE_URL
}
/tools
/
`
,
{
method
:
'
GET
'
,
method
:
'
GET
'
,
headers
:
{
headers
:
{
Accept
:
'
application/json
'
,
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