Run chat-llamaindex demo #15458
Unanswered
d3buggerdan
asked this question in
Q&A
Replies: 1 comment 4 replies
-
To fix the 'invalid_api_key' error in the chat-llamaindex demo, ensure that you have correctly set the OPENAI_API_KEY=<openai-api-key> Replace |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
@[email protected][email protected][email protected][email protected]\node_modules\next\dist\server\lib\start-server.js:141:13) {
status: 401,
headers: {
'alt-svc': 'h3=":443"; ma=86400',
'cf-cache-status': 'DYNAMIC',
'cf-ray': '8b4af8136e9f729e-EWR',
connection: 'keep-alive',
'content-length': '274',
'content-type': 'application/json; charset=utf-8',
date: 'Sat, 17 Aug 2024 16:16:31 GMT',
server: 'cloudflare',
'set-cookie': '__cf_bm=H_0o0DXxJTYiRm0ITvKOOgXpnAXiOXeI63Tm.IWqjcU-1723911391-1.0.1.1-kwDJYXKxctehDx.s_kNSzmWV3UoIrKzpVfCmu9Cgr4bQwGHvsgMtQuTd4jB2y8pK6JzxEwMZfYvq1ADc0TogiA; path=/; expires=Sat, 17-Aug-24 16:46:31 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=_su_jUa23QtB9jpLiqMtSTD32SR53QN64oBHgIVc2Bo-1723911391385-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None',
'strict-transport-security': 'max-age=15552000; includeSubDomains; preload',
vary: 'Origin',
'x-content-type-options': 'nosniff',
'x-request-id': 'req_00250a8e0d7ac8cd61ebae49e4a77a25'
},
request_id: 'req_00250a8e0d7ac8cd61ebae49e4a77a25',
error: {
message: 'Incorrect API key provided: Set your************here. You can find your API key at https://platform.openai.com/account/api-keys.',
type: 'invalid_request_error',
param: null,
code: 'invalid_api_key'
},
code: 'invalid_api_key',
param: null,
type: 'invalid_request_error'
}
how do i fix this?
@dosu
Beta Was this translation helpful? Give feedback.
All reactions