Open engrharisijaz opened 1 year ago
Could you go into scripts/prepdocs.ps1 and try making the change from:
--openaiservice $env:AZURE_OPENAI_SERVICE
to:
--openaiservice `"$env:AZURE_OPENAI_SERVICE`"
And then re-run scripts/prepdocs.ps1 and see if you get the same error?
[Another error occured](prepdocs.py: error: argument --openaideployment: expected one argument)
So, similarly I have changed
--openaideployment $env:AZURE_OPENAI_EMB_DEPLOYMENT
to:
--openaideployment `"$env:AZURE_OPENAI_EMB_DEPLOYMENT`"
But still Error: No such organization: Linkers.
cc @carlotta94c since this is related to non-Azure OpenAI deployment.
Can you set logging mode to debug in prepdocs.py?
logging.basicConfig(logging.DEBUG)
That will then show you the URL that OpenAI is trying to access, and you can compare that URL to what you expect it to be (perhaps in the OpenAI dashboard?). I don't have a non-Azure OpenAI account yet for replication.
--openaideployment `"$env:AZURE_OPENAI_EMB_DEPLOYMENT`"
Did you misstype that? As the quotes are mismatched.
No, that's apparently how Powershell escapes quotes? https://www.delftstack.com/howto/powershell/powershell-escape-single-and-double-quote/
@engrharisijaz I haven't seen the error "No such organization" before but I am assuming it comes from the OpenAI server not recognizing your organization. You can also print or log out what's being set on this line:
openai.organization = args.openaiorg
And make sure it matches what's in your OpenAI account.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this issue will be closed.
This issue is for a: (mark with an
x
)Minimal steps to reproduce
Any log messages given by the failure
Deploying services (azd deploy)
(✓) Done: Deploying service backend
OS and Version?
azd version?
Mention any other details that might be useful