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

mismatched_organization error #76

Open
yaqinamy opened this issue Apr 9, 2024 · 3 comments
Open

mismatched_organization error #76

yaqinamy opened this issue Apr 9, 2024 · 3 comments

Comments

@yaqinamy
Copy link

yaqinamy commented Apr 9, 2024

when comparing local llama2 model with GPT4, got error:

ERROR Failed to send a test chat completion to the GPT deployment due to error: evaluate.py:110
Error code: 401 - {'error': {'message': 'OpenAI-Organization header should match organization for API key', 'type': 'invalid_request_error',
'param': None, 'code': 'mismatched_organization'}

@pamelafox
Copy link
Contributor

So are you using llama2 via ollama for the actual evaluation?

@yaqinamy
Copy link
Author

yaqinamy commented Apr 9, 2024

Yes Pamela, I am learning from your video using llama2 via ollama which I deployed local and GPT4 deployed at azure.

@pamelafox
Copy link
Contributor

Okay, so to clarify:

  • You are using GPT4 for the evaluation?
  • You are using llama2 for the chat application itself?

The error in your report shows an issue with the evaluation model, which would be GPT-4. But you shouldn't need to specify OpenAI organization for an Azure model. Do the logs indicate whether it's trying to use Azure or OpenAI.com?

You should see the logs from this code:

if os.environ.get("AZURE_OPENAI_KEY"):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants