#Using RAG agents with a local hosted LLM
11 messages · Page 1 of 1 (latest)
Whenever I try to use the example for RAG (https://microsoft.github.io/autogen/blog/2023/10/18/RetrieveChat/) but while hosting an LLM locally, I get this error: openai.error.AuthenticationError: No API key provided. You can set your API key in code using 'openai.api_key = <API-KEY>', or you can set the environment variable OPENAI_API_KEY=<API-KEY>). If your API key is stored in a file, you can point the openai module at it with 'openai.api_key_path = <PATH>'. You can generate API keys in the OpenAI web interface. See https://platform.openai.com/account/api-keys for details.
Using RAG agents with a local hosted LLM
According to this page: https://microsoft.github.io/autogen/blog/2023/07/14/Local-LLMs/
And also here: https://github.com/microsoft/autogen/issues/46
You need to provide something to the api_key field. Either "NULL" or "sk-111111111111111111111111111111111111111111111111" or whatever suits you
You also need to be one of the pre release version (don't know which one, take the latest to be sure)
Currently, autogen.oai only supports OpenAI models. I am planning to integrate open source LLMs into autogen. This would require Hugging Face transformers library. Some of the open source LLMs I ha...
my API key is already "sk-111111111111111111111111111111111111111111111111" in config_list, I've been able to run autogen without RAG
updated to the latest release,
openai.OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable
this is the current error
hello, were you able to get it to work? i'm facing the same issues!
I haven't, but I still haven't tried with the latest release, only the pre release
i'm sorry but i'm a bit of a newbie! when you say the pre-release, you mean the pre-release of what exactly ? thank you
and which version of the openai package are you using btw ?
think of pre release as sort of beta versions of a new autogen release