Scrapegraph-ai: Incorrect API Key Error with OpenAI Proxy
Description I am encountering an issue while using an OpenAI proxy. The error message indicates that the provided API key is incorrect, even though I have verified that both the proxy URL and the API key work in other projects.
Configuration Here is the relevant portion of my configuration:
graph_config = {
"llm": {
"api_key": "sk-QDYpP****************************************07dY",
"model": "gpt-3.5-turbo",
"openai_api_base": "https://4.0.wokaai.com/v1",
},
}
Error Message The following error message is returned:
openai.AuthenticationError: Error code: 401 - {'error': {'message': 'Incorrect API key provided: sk-QDYpP****************************************07dY. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}
Steps Taken
- I have verified that the API key and the proxy URL are correct by using them in other projects, where they work without any issues.
- I have double-checked the configuration and ensured that the API key is correctly copied.
Request Could you please help me identify what might be causing this issue and how to resolve it? Any guidance or suggestions would be greatly appreciated.
Thank you!
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17
did you mean this?