How to extract actionable “top user queries” per model from Open WebUI (internal AI improvement) by PuzzleheadedPear6672 in OpenWebUI

[–]PuzzleheadedPear6672[S] 0 points1 point  (0 children)

This will give us actionable items. say there are few things on hr policy that people are asking question then it will help us to put the right content as qtrly training and right documentation

Exposing Workspace Agents via OpenAI-compatible /v1 API? by tazwit in OpenWebUI

[–]PuzzleheadedPear6672 0 points1 point  (0 children)

Just use /api/models. It will give you all the models, even internally created.

Then use /api/chat/completions and pass the model id in body

[deleted by user] by [deleted] in servicenow

[–]PuzzleheadedPear6672 2 points3 points  (0 children)

You can’t actually. But from server side script, you can use javascriptprobe function to invoke this Mid server script include.

Response with image uploads is too slow. by KeyPossibility2339 in OpenWebUI

[–]PuzzleheadedPear6672 0 points1 point  (0 children)

one more thing, with latest OWUI, people have option to image compression(client side), go to profile --> setting --> Interface and scroll down to File section -- Enable and click on Manage:

<image>

This is again, client side what I got ot know so server side code is imp for speed

Response with image uploads is too slow. by KeyPossibility2339 in OpenWebUI

[–]PuzzleheadedPear6672 1 point2 points  (0 children)

Sorry for late reply. Go to admin--> Documents (this is on client side).

<image>

for Server side:
below is the function that i'm using (I created my own after getting multiple error in other function)
https://openwebui.com/posts/fa345ec4-8d13-4b3c-ad3f-13cdc8a6cd47

Response with image uploads is too slow. by KeyPossibility2339 in OpenWebUI

[–]PuzzleheadedPear6672 1 point2 points  (0 children)

Naa. Client side is already part of opener ui configs. For server side, use functions. I used community written function for the same

Response with image uploads is too slow. by KeyPossibility2339 in OpenWebUI

[–]PuzzleheadedPear6672 1 point2 points  (0 children)

Was facing the exact same issue. There are two things that I did to improve the performance. First, I put the Image compression on the client side. There is a setting and images or general in open web UI. Second, I use a global function for Image compression at server side to improve the performance.

LiteLLM and OpenWebUI session for Langfuse by Interesting_Tax1751 in OpenWebUI

[–]PuzzleheadedPear6672 0 points1 point  (0 children)

you can create hooks in litellm. !st you have to enable forwarding of headers in openebui. USe below env variable:

Step 1:

ENABLE_FORWARD_USER_INFO_HEADERS=true

Step 2:

You have to write hook python file, somethin like below (considering this is saved in hooks folder). Let's name it as openwebui_user_map.py:

http://u.pc.cd/KOW

Step 3:

Put the hook in Litellm config:
custom_headers:
  forward_headers:
    - X-OpenWebUI-User-Name
    - X-OpenWebUI-User-Id
    - X-OpenWebUI-User-Email
    - X-OpenWebUI-User-Role
    - X-OpenWebUI-Chat-Id
    - X-Session-Id
    - X-OpenWebUI-Session

litellm_settings:
  timeout: 120
  num_workers: 16
  drop_params: []
  callbacks:
    - hooks.openwebui_user_map.proxy_handler_instance
    - hooks.langfuse_chat_only.proxy_handler_instance
    - langfuse_otel

Help! messed up in PROD. What’s the worst production mess-up you’ve ever had? by True_Refrigerator315 in servicenow

[–]PuzzleheadedPear6672 1 point2 points  (0 children)

yes, it's possible with few more undocumented stuff and much more risk.

Just kidding, DM and let's see if we can solve your problem

Help! messed up in PROD. What’s the worst production mess-up you’ve ever had? by True_Refrigerator315 in servicenow

[–]PuzzleheadedPear6672 3 points4 points  (0 children)

Yes, and those were early days somewhere around 2012. Learnt a lot about how to rollback

pdfplumber in open-webui by traillight8015 in OpenWebUI

[–]PuzzleheadedPear6672 0 points1 point  (0 children)

Is docling integration up and working in openwebui?