anything-llm icon indicating copy to clipboard operation
anything-llm copied to clipboard

[CHORE]: Append custom `User-Agent` on `openai` invocations

Open odrobnik opened this issue 1 year ago • 2 comments

What would you like to see?

Right now the user-agent seen by the OpenAI-compatible server-side is OpenAI/JS 4.38.5 although the App is this:

image

I think the user agent should be `AnythingLLM/1.5.5" or similar.

Further reading: https://www.scientiamobile.com/correctly-form-user-agents-for-mobile-apps/

odrobnik avatar May 22 '24 20:05 odrobnik

User-agent for which interaction? Streaming chats or something else?

timothycarambat avatar May 22 '24 21:05 timothycarambat

The user agent when making calls to an OpenAI-compatible endpoint.

odrobnik avatar May 23 '24 08:05 odrobnik