The error you encountered is likely due to a recent change in the AutoGen library, which no longer includes the api_type
configuration parameter.
To rectify this issue, you need to make the following adjustments to your code:
-
Remove the
api_type
parameter altogether, as it is no longer required. -
In place of
api_type
, add thebase_url
parameter, which specifies the base URL of your local LLM API. The format should bebase_url": "http://localhost:1234/v1"
, wherelocalhost:1234
is the address of your LLM instance. -
Ensure that you provide a valid API key for your local LLM. In the
"api_key"
field, replace the placeholder value"sk-111111111111111"
with your actual API key.
Here's an updated configuration example that includes the necessary changes:
{
"base_url": "http://localhost:1234/v1",
"api_key": "{{API_KEY}}",
...
}
Please refer to the official AutoGen migration guide for more detailed instructions and additional resources: https://microsoft.github.io/autogen/docs/Migration-Guide/