Autogen Keep Using OpenAI API, Not Local #746
-
I have followed the tutorial of https://microsoft.github.io/autogen/docs/reference/oai/completion/, start the FastAI servers. My code is
And Autogen keeps requesting OpenAI API instead of localhost.
My Autogen version is What is going wrong? Could someone help me please? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
pyautogen==0.1.14
uses the old version of the openai package,openai==0.28.1
. But most parts of the repo are for the newer version,pyautogen==0.2.0b6
, andopenai==1.x
.base_url
is for the newer versions. You can replacebase_url
with the oldapi_base
. Hopefully that helps.