You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When the LocalAI instance is configured with an Bearer API token. it is not possible to use the LocalAI Embeddings Node in flowiseAI.
It will not use the set API key from ChatLocalAI node.
To Reproduce
Add ChatLocalAI node add LocalAI credential. paste the API key from LocalAI. set correct basePath and model name.
Add "LocalAI Embeddings" node. set correct Base Path and ModelName.
Expected behavior
in HTTP POST request the full Authorization header with correct api key should be added. but only authorization: 'Bearer sk-' is added.
Screenshots / Debug code
OpenAI:DEBUG:request https://localai.base.url/v1/embeddings {
method: 'post',
path: '/embeddings',
�
{
model: 'text-embedding-ada-002',
�
input: [
'data 1',
'data 2',
]
}
} {
'content-length': '5512',
accept: 'application/json',
'content-type': 'application/json',
'user-agent': 'OpenAI/JS 4.32.1',
'x-stainless-lang': 'js',
'x-stainless-package-version': '4.32.1',
'x-stainless-os': 'Linux',
'x-stainless-arch': 'x64',
'x-stainless-runtime': 'node',
'x-stainless-runtime-version': 'v18.20.0',
authorization: 'Bearer sk-'
}
OpenAI:DEBUG:response (error; (error; not retryable)) 401 https://localai.base.url/v1/embeddings {
connection: 'keep-alive',
'content-length': '29',
'content-type': 'application/json',
date: 'Sat, 06 Apr 2024 22:00:39 GMT',
server: 'nginx'
} undefined
2024-04-06 22:00:39 [ERROR]: 401 status code (no body)
Error: 401 status code (no body)
at APIError.generate (/usr/local/lib/node_modules/flowise/node_modules/openai/error.js:47:20)
at OpenAI.makeStatusError (/usr/local/lib/node_modules/flowise/node_modules/openai/core.js:263:33)
at OpenAI.makeRequest (/usr/local/lib/node_modules/flowise/node_modules/openai/core.js:306:30)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async /usr/local/lib/node_modules/flowise/node_modules/@langchain/openai/dist/embeddings.cjs:255:29
at async RetryOperation._fn (/usr/local/lib/node_modules/flowise/node_modules/p-retry/index.js:50:12)
2024-04-06 22:00:39 [ERROR]: [server]: Error: Error: 401 status code (no body)
Error: Error: 401 status code (no body)
at buildFlow (/usr/local/lib/node_modules/flowise/dist/utils/index.js:405:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async utilBuildChatflow (/usr/local/lib/node_modules/flowise/dist/utils/buildChatflow.js:257:36)
at async createInternalPrediction (/usr/local/lib/node_modules/flowise/dist/controllers/internal-predictions/index.js:7:29)
Setup
Flowise Version 1.6.3
OS: Docker, Linux
Browser Chrome
The text was updated successfully, but these errors were encountered:
Describe the bug
When the LocalAI instance is configured with an Bearer API token. it is not possible to use the LocalAI Embeddings Node in flowiseAI.
It will not use the set API key from ChatLocalAI node.
To Reproduce
Add ChatLocalAI node add LocalAI credential. paste the API key from LocalAI. set correct basePath and model name.
Add "LocalAI Embeddings" node. set correct Base Path and ModelName.
Expected behavior
in HTTP POST request the full Authorization header with correct api key should be added. but only authorization: 'Bearer sk-' is added.
Screenshots / Debug code
Setup
The text was updated successfully, but these errors were encountered: