Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Add Model Providers:Azure-OpenAI error #1402

Closed
1 task done
guoyuhao2330 opened this issue Jul 7, 2024 · 4 comments
Closed
1 task done

[Bug]: Add Model Providers:Azure-OpenAI error #1402

guoyuhao2330 opened this issue Jul 7, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@guoyuhao2330
Copy link
Contributor

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch name

main

Commit ID

main

Other environment information

No response

Actual behavior

ValueError('Must provide one of the base_url or azure_endpoint arguments, or the AZURE_OPENAI_ENDPOINT environment variable')

Expected behavior

No response

Steps to reproduce

Add Azure-OpenAI API-Key

Additional information

No response

@guoyuhao2330 guoyuhao2330 added the bug Something isn't working label Jul 7, 2024
@rpkpavan
Copy link

we are also facing same issue..please help.

cike8899 added a commit to cike8899/ragflow that referenced this issue Jul 15, 2024
KevinHuSh pushed a commit that referenced this issue Jul 15, 2024
### What problem does this PR solve?

fix: Add Model Providers:Azure-OpenAI error #1402
### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
@rpkpavan
Copy link

Dear @KevinHuSh : Thanks for the commit. I have done gitpull and i face the following error. kindly guide

while trying to add the Azure Open API from the portal ValueError('Must provide one of the base_url or azure_endpoint arguments, or the AZURE_OPENAI_ENDPOINT environment variable')

on backend logs i get this error:
"LLM factory gpt-4-32k has not supported yet, switch to 'Tongyi-Qianwen/QWen' automatically, and please check the API_KEY in service_conf.yaml."

@VietNguyenHoang812
Copy link

I add a GPT-4o key to with both API key and base_url but got this message error on Web:
"Hint 102
Fail to access embedding model(azure-text-embedding-3-large) using this api key.Unsupported data type Fail to access embedding model(azure-text-embedding-3-small) using this api key.Unsupported data type Fail to access embedding model(azure-text-embedding-ada-002) using this api key.Unsupported data type"

@rendybjunior
Copy link

I still got the same issue. I suspect this is because the Azure OpenAI configuration only allows full url chat completion as parameter. Meanwhile Azure openAI has different url for each deployment model for each different tasks.

Raised new issue here #2840

Halfknow pushed a commit to Halfknow/ragflow that referenced this issue Nov 11, 2024
…ow#1512)

### What problem does this PR solve?

fix: Add Model Providers:Azure-OpenAI error infiniflow#1402
### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants