cheshire-cat-ai / core

Production ready AI agent framework
https://cheshirecat.ai
GNU General Public License v3.0
2.14k stars 282 forks source link

[ERROR] AsyncCompletions.create() got an unexpected keyword argument 'api_type'" #842

Open edoardosaputelli opened 1 month ago

edoardosaputelli commented 1 month ago

Describe the bug A clear and concise description of what the bug is.

The error occurs when I try to use an OpenAI over Azure LLM (Setting “Azure OpenAI Completion Models”). When I try to interact with the model, the error “AsyncCompletions.create() got an unexpected keyword argument ‘api_type’” comes out. I tried both the Dumb and Default Embedder.

To Reproduce Steps to reproduce the behavior (as example`):

  1. Go to Settings
  2. Click on LLM > Configure
  3. Insert the API parameters (I'm sure they work via Python API)
  4. Click "Save"
  5. Click on Embedder > Configure
  6. Select Dumb (or Default) Embedder
  7. Click "Save"
  8. Go to Home
  9. Insert any prompt
  10. The error comes out

Expected behavior A clear and concise description of what you expected to happen.

I expect the model to respond to my prompt.

Additional context Add any other context about the problem here.

pieroit commented 1 month ago

Are you on the latest version?

edoardosaputelli commented 1 month ago

Yes, I tried starting from the latest (1.6.1) to 1.5.3, then I opened the issue