Notification texts go here Contact Us Buy Now!

I am getting an error while trying to run autogen using a local LLM

 

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:

  1. Remove the api_type parameter altogether, as it is no longer required.

  2. In place of api_type, add the base_url parameter, which specifies the base URL of your local LLM API. The format should be base_url": "http://localhost:1234/v1", where localhost:1234 is the address of your LLM instance.

  3. 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/

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.