mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2026-03-02 22:57:05 -05:00
BUG #2 LocalAI with API KEY set can not pull model #237
Labels
No labels
Desktop
Docker
Integration Request
Integration Request
OS: Linux
OS: Mobile
OS: Windows
UI/UX
blocked
bug
bug
core-team-only
documentation
duplicate
embed-widget
enhancement
feature request
github_actions
good first issue
investigating
needs info / can't replicate
possible bug
question
stage: specifications
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/anything-llm#237
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lunamidori5 on GitHub (Dec 8, 2023).
Originally assigned to: @timothycarambat on GitHub.
API KEY is not getting passed when AnythingLLM requests models from LocalAI when a API KEY is set. Returns a 401.
@timothycarambat commented on GitHub (Dec 8, 2023):
Given that the API using the OpenAi
basePathoverwrite, I dont see anything wrong with the implementation here. Obviously getting a 401 means that the API key is expected by LocalAI, but AnythingLLM should be appending it here.github.com/Mintplex-Labs/anything-llm@8cc1455b72/server/utils/AiProviders/localAi/index.js (L9C4-L16)@lunamidori5 commented on GitHub (Dec 8, 2023):
@timothycarambat its not sending the API KEY with both model and embedding requests
@lunamidori5 commented on GitHub (Dec 8, 2023):
Fixed the error with the embeds by copy and paste the code from the localai index file to the embeding index file
index.txt
@timothycarambat commented on GitHub (Dec 9, 2023):
Oh so just the API key is missing on the embedding and is not being inherited in the embedding file. Will update this right now then.
@timothycarambat commented on GitHub (Dec 9, 2023):
Task: Update API key auth and UI for LocalAI embedding as the LLM model only use the API key currently.
@lunamidori5 commented on GitHub (Dec 9, 2023):
@timothycarambat dont forget models <3 deeply sorry for having to make yall do this