[GH-ISSUE #1467] [Local development] LLM Preference not showing #938

Closed
opened 2026-02-22 18:22:18 -05:00 by yindo · 2 comments
Owner

Originally created by @Nabushika on GitHub (May 20, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1467

How are you running AnythingLLM?

Local development

What happened?

Started testing anything-llm with a cloud llm, then started playing around with the settings - http://localhost:3000/settings/llm-preference is blank and there's an error in the console:

Uncaught TypeError: selectedLLMObject is undefined
    GeneralLLMPreference index.jsx:397
    React 12
    workLoop scheduler.development.js:266
    flushWork scheduler.development.js:239
    performWorkUntilDeadline scheduler.development.js:533
The above error occurred in the <GeneralLLMPreference> component:

GeneralLLMPreference@http://localhost:3000/src/pages/GeneralSettings/LLMPreference/index.jsx:310:39
div
UserMenu@http://localhost:3000/src/components/UserMenu/index.jsx:18:33
AdminRoute@http://localhost:3000/src/components/PrivateRoute/index.jsx:82:27
RenderedRoute@http://localhost:3000/node_modules/.vite/deps/react-router-dom.js?v=ffa61513:3546:7
Routes@http://localhost:3000/node_modules/.vite/deps/react-router-dom.js?v=ffa61513:3980:7
PfpProvider@http://localhost:3000/src/PfpContext.jsx:22:28
LogoProvider@http://localhost:3000/src/LogoContext.jsx:22:29
ContextWrapper@http://localhost:3000/src/AuthContext.jsx:25:37
Suspense
App
Router@http://localhost:3000/node_modules/.vite/deps/react-router-dom.js?v=ffa61513:3928:7
BrowserRouter@http://localhost:3000/node_modules/.vite/deps/react-router-dom.js?v=ffa61513:4658:7

Are there known steps to reproduce?

Haven't tried to reproduce it yet, but the exact steps I took were:

  • clone the repo
  • create a new workspace
  • open workspace settings, change "Workspace LLM Provider" and "agent configuration" to different values (I'm trying out groq, so that's what I used)
  • Add Google search API keys
  • Tested the agent websearch, exited agent loop, asked the workspace llm what model it is
  • open global settings and navigate to "LLM preference"
Originally created by @Nabushika on GitHub (May 20, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1467 ### How are you running AnythingLLM? Local development ### What happened? Started testing anything-llm with a cloud llm, then started playing around with the settings - http://localhost:3000/settings/llm-preference is blank and there's an error in the console: ``` Uncaught TypeError: selectedLLMObject is undefined GeneralLLMPreference index.jsx:397 React 12 workLoop scheduler.development.js:266 flushWork scheduler.development.js:239 performWorkUntilDeadline scheduler.development.js:533 ``` ``` The above error occurred in the <GeneralLLMPreference> component: GeneralLLMPreference@http://localhost:3000/src/pages/GeneralSettings/LLMPreference/index.jsx:310:39 div UserMenu@http://localhost:3000/src/components/UserMenu/index.jsx:18:33 AdminRoute@http://localhost:3000/src/components/PrivateRoute/index.jsx:82:27 RenderedRoute@http://localhost:3000/node_modules/.vite/deps/react-router-dom.js?v=ffa61513:3546:7 Routes@http://localhost:3000/node_modules/.vite/deps/react-router-dom.js?v=ffa61513:3980:7 PfpProvider@http://localhost:3000/src/PfpContext.jsx:22:28 LogoProvider@http://localhost:3000/src/LogoContext.jsx:22:29 ContextWrapper@http://localhost:3000/src/AuthContext.jsx:25:37 Suspense App Router@http://localhost:3000/node_modules/.vite/deps/react-router-dom.js?v=ffa61513:3928:7 BrowserRouter@http://localhost:3000/node_modules/.vite/deps/react-router-dom.js?v=ffa61513:4658:7 ``` ### Are there known steps to reproduce? Haven't tried to reproduce it yet, but the exact steps I took were: * clone the repo * create a new workspace * open workspace settings, change "Workspace LLM Provider" and "agent configuration" to different values (I'm trying out groq, so that's what I used) * Add Google search API keys * Tested the agent websearch, exited agent loop, asked the workspace llm what model it is * open global settings and navigate to "LLM preference"
yindo added the question label 2026-02-22 18:22:18 -05:00
yindo closed this issue 2026-02-22 18:22:18 -05:00
Author
Owner

@timothycarambat commented on GitHub (May 20, 2024):

I see you are on Local Development - did you go through onboarding and/or have an LLM_PROVIDER value set in the env?
for local dev this is server/.env.development when running in development and is server/.env in production

@timothycarambat commented on GitHub (May 20, 2024): I see you are on `Local Development` - did you go through onboarding and/or have an `LLM_PROVIDER` value set in the env? for local dev this is `server/.env.development` when running in development and is `server/.env` in production
Author
Owner

@timothycarambat commented on GitHub (May 20, 2024):

If you are running development yarn dev:server and make a code change in the backend, it will hot reload the server and what ENV you may have saved will revert to whatever is in .env.development

@timothycarambat commented on GitHub (May 20, 2024): If you are running development `yarn dev:server` and make a code change in the backend, it will hot reload the server and what `ENV` you may have saved will revert to whatever is in `.env.development`
yindo changed title from [Local development] LLM Preference not showing to [GH-ISSUE #1467] [Local development] LLM Preference not showing 2026-06-05 14:38:03 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#938