Azure OpenAI API Error #309

Closed
opened 2026-02-21 17:26:44 -05:00 by yindo · 5 comments
Owner

Originally created by @wangxing7714436 on GitHub (Jul 28, 2023).

Dify version: Cloud and Self Host, tried both

Steps To Reproduce

image it should provide at least these parameters I think, api_type, base, version, key and engine.

The current behavior

validation error

The expected behavior

update openai related functions

Originally created by @wangxing7714436 on GitHub (Jul 28, 2023). <!-- Not enough parameters input for azure openai and validation error when setting azure open ai key --> Dify version: Cloud and Self Host, tried both ## Steps To Reproduce <!-- --> ![image](https://github.com/langgenius/dify/assets/31149248/a944d384-1dd0-4411-b10a-8d98c0256ede) it should provide at least these parameters I think, api_type, base, version, key and engine. ## The current behavior validation error ## The expected behavior update openai related functions
yindo closed this issue 2026-02-21 17:26:44 -05:00
Author
Owner

@crazywoola commented on GitHub (Jul 28, 2023):

Here https://docs.dify.ai/getting-started/faq/llms-use-faq you can follow this instruction.

@crazywoola commented on GitHub (Jul 28, 2023): Here https://docs.dify.ai/getting-started/faq/llms-use-faq you can follow this instruction.
Author
Owner

@wangxing7714436 commented on GitHub (Aug 2, 2023):

Here https://docs.dify.ai/getting-started/faq/llms-use-faq you can follow this instruction.

It requires deployment name as the same as Dify's model name which currently can't be reach since azure does not allowed "-" in name, they only allows "_" instead.
image

@wangxing7714436 commented on GitHub (Aug 2, 2023): > Here https://docs.dify.ai/getting-started/faq/llms-use-faq you can follow this instruction. It requires deployment name as the same as Dify's model name which currently can't be reach since azure does not allowed "-" in name, they only allows "_" instead. ![image](https://github.com/langgenius/dify/assets/31149248/821f9c11-e93f-4244-a880-cbfa09a853cf)
Author
Owner

@takatost commented on GitHub (Aug 2, 2023):

Did you add an extra space? 🤔

@takatost commented on GitHub (Aug 2, 2023): Did you add an extra space? 🤔
Author
Owner

@wangxing7714436 commented on GitHub (Aug 2, 2023):

Did you add an extra space? 🤔

"." is not allowed as well, which is required in dify's azure model deployment name.

@wangxing7714436 commented on GitHub (Aug 2, 2023): > Did you add an extra space? 🤔 "." is not allowed as well, which is required in dify's azure model deployment name.
Author
Owner

@takatost commented on GitHub (Aug 5, 2023):

In Dify, the Azure OpenAI Deployment Name will also remove the ".".

@takatost commented on GitHub (Aug 5, 2023): In Dify, the Azure OpenAI Deployment Name will also remove the ".".
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#309