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

[FEAT]: Allow Azure OpenAI defined as Workspace LLM Provider

Open tsaibing opened this issue 1 year ago • 4 comments

How are you running AnythingLLM?

All versions

What happened?

Azure OpenAI can only be setup in system default LLM Preference.

But I want to specify it for a single workspace and realize that it is not available in the drop down list.

Issue found in both Windows Desktop v1.5.0 and Docker in Linux.

Are there known steps to reproduce?

  1. Create a Workspace
  2. Go to Chat Settings - Workspace LLM Provider
  3. There is no option for 'Azure OpenAI'

tsaibing avatar Apr 22 '24 09:04 tsaibing

AnythingLLM macOS version v1.5.0 also don't have an option 'Azure OpenAI' on the LLM provider dropdown on Workspace settings

ShadowArcanist avatar Apr 22 '24 09:04 ShadowArcanist

This is actually intentional for Workspace LLMs at this time. https://github.com/Mintplex-Labs/anything-llm/blob/bf165f2ab25b873581edcacac934ebff3f429d8d/frontend/src/pages/WorkspaceSettings/ChatSettings/WorkspaceLLMSelection/index.jsx#L8

timothycarambat avatar Apr 22 '24 20:04 timothycarambat

This is actually intentional for Workspace LLMs at this time.

https://github.com/Mintplex-Labs/anything-llm/blob/bf165f2ab25b873581edcacac934ebff3f429d8d/frontend/src/pages/WorkspaceSettings/ChatSettings/WorkspaceLLMSelection/index.jsx#L8

but what's the reasoning?

spiveym avatar Sep 20 '24 02:09 spiveym

@spiveym It was because we use the process.env for keeping track of the model preference and the dropdown for the model selector is, well, a dropdown - so we can't use /models to enum the available models.

We need a combobox component that we can use for free-form + available models so we can support providers with many models at one time specifically those who dont support /models

timothycarambat avatar Sep 20 '24 19:09 timothycarambat