Skip to content

Commit

Permalink
Merge pull request #13 from OpenLLM-France/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
htagourti authored Jan 21, 2025
2 parents dd02f98 + a9e5553 commit 3d00990
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/open_webui/routers/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ async def process_stream_with_guard(content: StreamReader, guardCheck_frequency=
yield chunk

return StreamingResponse(
process_stream_with_guard(content=r.content) if guard else r.content,
r.content, # process_stream_with_guard(content=r.content) if guard else r.content,
status_code=r.status,
headers=dict(r.headers),
background=BackgroundTask(
Expand Down
10 changes: 8 additions & 2 deletions src/routes/auth/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -195,14 +195,20 @@
let onboarding = false;
const refreshQueueDisabled = async () => {
// Disable joining queue if too many users are already waiting
queueDisabled = (await getMetrics()).waiting_users >= $config.features.queue.max_waiting_users;
if (queueDisabled) setTimeout(refreshQueueDisabled, 5 * 60 * 1000);
};
onMount(async () => {
if ($user !== undefined) {
await goto('/');
}
await checkOauthCallback();
// Disable joining queue if too many users are already waiting
queueDisabled = (await getMetrics()).waiting_users >= $config.features.queue.max_waiting_users;
await refreshQueueDisabled();
loaded = true;
if (($config?.features.auth_trusted_header ?? false) || $config?.features.auth === false) {
Expand Down

0 comments on commit 3d00990

Please sign in to comment.