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
f8cf43c0
"...composable_kernel.git" did not exist on "e576c0819f14ec43d5d3b49f1faae719326aa502"
Commit
f8cf43c0
authored
Feb 25, 2024
by
Timothy J. Baek
Browse files
refac: console logs removed
parent
42251c23
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
8 deletions
+0
-8
src/lib/apis/openai/index.ts
src/lib/apis/openai/index.ts
+0
-1
src/routes/(app)/+page.svelte
src/routes/(app)/+page.svelte
+0
-7
No files found.
src/lib/apis/openai/index.ts
View file @
f8cf43c0
...
@@ -150,7 +150,6 @@ export const getOpenAIModels = async (token: string = '') => {
...
@@ -150,7 +150,6 @@ export const getOpenAIModels = async (token: string = '') => {
return
res
.
json
();
return
res
.
json
();
})
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
console
.
log
(
err
);
error
=
`OpenAI:
${
err
?.
error
?.
message
??
'
Network Problem
'
}
`
;
error
=
`OpenAI:
${
err
?.
error
?.
message
??
'
Network Problem
'
}
`
;
return
[];
return
[];
});
});
...
...
src/routes/(app)/+page.svelte
View file @
f8cf43c0
...
@@ -104,13 +104,8 @@
...
@@ -104,13 +104,8 @@
await
cancelChatCompletion
(
localStorage
.
token
,
currentRequestId
);
await
cancelChatCompletion
(
localStorage
.
token
,
currentRequestId
);
currentRequestId
=
null
;
currentRequestId
=
null
;
}
}
window
.
history
.
replaceState
(
history
.
state
,
''
,
`/`);
window
.
history
.
replaceState
(
history
.
state
,
''
,
`/`);
console
.
log
(
'initNewChat'
);
await
chatId
.
set
(
''
);
await
chatId
.
set
(
''
);
console
.
log
($
chatId
);
autoScroll
=
true
;
autoScroll
=
true
;
...
@@ -121,8 +116,6 @@
...
@@ -121,8 +116,6 @@
currentId
:
null
currentId
:
null
};
};
console
.
log
($
config
);
if
($
page
.
url
.
searchParams
.
get
(
'models'
))
{
if
($
page
.
url
.
searchParams
.
get
(
'models'
))
{
selectedModels
=
$
page
.
url
.
searchParams
.
get
(
'models'
)?.
split
(
','
);
selectedModels
=
$
page
.
url
.
searchParams
.
get
(
'models'
)?.
split
(
','
);
}
else
if
($
settings
?.
models
)
{
}
else
if
($
settings
?.
models
)
{
...
...
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