autogen icon indicating copy to clipboard operation
autogen copied to clipboard

[Bug]: cannot use azure credentials on mac

Open borisko123 opened this issue 1 year ago • 4 comments

Describe the bug

I run studio (v 0.0.23a). for configuration , i did what is describe in issue #1151, which is closed but i got the same error: 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

I wonder if config works on mac

Steps to reproduce

  1. autogenstudio ui --port 8081
  2. select agent
  3. remove all models
  4. add one model with azure params
  5. start default workflow in playground
  6. see error

Expected Behavior

the workflow should work

Screenshots and logs

No response

Additional Information

No response

borisko123 avatar Jan 10 '24 16:01 borisko123

@victordibia

rickyloynd-microsoft avatar Jan 11 '24 00:01 rickyloynd-microsoft

@borisko123 ,

Can you confirm that you have added the model to both user proxy and assistant? It should be the only models for both agents

Also, the LLM should be configured and confirmed on the workflow. Also ensure that the azure workflow is selected in the playground

victordibia avatar Jan 11 '24 00:01 victordibia

yes , both agents are configured. please advise how to exactly configure them , using azure credentials

On Thu, Jan 11, 2024 at 2:03 AM Victor Dibia @.***> wrote:

@borisko123 https://github.com/borisko123 ,

Can you confirm that you have added the model to both user proxy and assistant? It should be the only models for both agents

— Reply to this email directly, view it on GitHub https://github.com/microsoft/autogen/issues/1196#issuecomment-1885952836, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOOOCDSWWMBYU6RACBLKDFLYN4T6DAVCNFSM6AAAAABBVA7NWSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBVHE2TEOBTGY . You are receiving this because you were mentioned.Message ID: @.***>

borisko123 avatar Jan 11 '24 08:01 borisko123

Hi @borisko123 ,

from #1151

For azure you will need to set the following

  • model - which is the deployment id or engine
  • api key .. from azure
  • base url .. from azure
  • model type .. - "azure"
  • api version ... which must be what you get from azure.

Also note that you should only have this model in your list of models. Can you confirm you have set these params?

Image

victordibia avatar Jan 11 '24 18:01 victordibia