Closed jasivana closed 1 year ago
@ruoccofabrizio Can you please help?
Double-check your deployment names in the Azure OpenAI portal. The .env file needs to be filled with the deployments name and not the models name.
Suggested config: OPENAI_ENGINES=text-davinci-003 OPENAI_EMBEDDINGS_ENGINE_DOC=text-embedding-ada-002 OPENAI_EMBEDDINGS_ENGINE_QUERY=text-embedding-ada-002
Hi Fabrizio,
Thanks for the reply. I actually changed the config to the deployment names, but finding it difficult to deploy the app service to azure. Do you have some recommendations?
Thanks, Janani
From: Fabrizio Ruocco @.> Sent: Tuesday, February 28, 2023 11:00 PM To: ruoccofabrizio/azure-open-ai-embeddings-qna @.> Cc: Janani Sivanandan @.>; Author @.> Subject: Re: [ruoccofabrizio/azure-open-ai-embeddings-qna] InvalidRequestError: The API deployment for the resource does not exist. (Issue #16)
Double-check your deployment names in the Azure OpenAI portal. The .env file needs to be filled with the deployments name and not the models name.
Suggested config: OPENAI_ENGINES=text-davinci-003 OPENAI_EMBEDDINGS_ENGINE_DOC=text-embedding-ada-002 OPENAI_EMBEDDINGS_ENGINE_QUERY=text-embedding-ada-002
— Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fruoccofabrizio%2Fazure-open-ai-embeddings-qna%2Fissues%2F16%23issuecomment-1449452946&data=05%7C01%7CJanani.Sivanandan%40microsoft.com%7C366d2aa481a042f3826208db1a22b036%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638132508520929545%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Higo5xz3ZrrVekRUi3lqkX8LMrZiZhjMHebHpichamo%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FA6GB7RSE7LE7CXY5DPMCB53WZ3X2BANCNFSM6AAAAAAVLJI6SE&data=05%7C01%7CJanani.Sivanandan%40microsoft.com%7C366d2aa481a042f3826208db1a22b036%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638132508520929545%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=5wJ0YDFiQ7DiRrrAHiB3X0hfw%2FbnD%2B9IOarXLJDe0uc%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>
I did update the environment variable as follows as my deployment name for text-davinci-003 model = "textdavinci003model", but all other models have the same name.
[cid:aee5e3e6-2585-4fb4-9398-f5418dc20aca]
I'm receiving a "Resource not found error now.
[cid:390629fe-4622-4a3c-9661-08c0422721f3]
Any help is appreciated. thanks!
From: Fabrizio Ruocco @.> Sent: Tuesday, February 28, 2023 11:00:48 PM To: ruoccofabrizio/azure-open-ai-embeddings-qna @.> Cc: Janani Sivanandan @.>; Author @.> Subject: Re: [ruoccofabrizio/azure-open-ai-embeddings-qna] InvalidRequestError: The API deployment for the resource does not exist. (Issue #16)
Double-check your deployment names in the Azure OpenAI portal. The .env file needs to be filled with the deployments name and not the models name.
Suggested config: OPENAI_ENGINES=text-davinci-003 OPENAI_EMBEDDINGS_ENGINE_DOC=text-embedding-ada-002 OPENAI_EMBEDDINGS_ENGINE_QUERY=text-embedding-ada-002
— Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fruoccofabrizio%2Fazure-open-ai-embeddings-qna%2Fissues%2F16%23issuecomment-1449452946&data=05%7C01%7CJanani.Sivanandan%40microsoft.com%7C366d2aa481a042f3826208db1a22b036%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638132508520929545%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Higo5xz3ZrrVekRUi3lqkX8LMrZiZhjMHebHpichamo%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FA6GB7RSE7LE7CXY5DPMCB53WZ3X2BANCNFSM6AAAAAAVLJI6SE&data=05%7C01%7CJanani.Sivanandan%40microsoft.com%7C366d2aa481a042f3826208db1a22b036%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638132508520929545%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=5wJ0YDFiQ7DiRrrAHiB3X0hfw%2FbnD%2B9IOarXLJDe0uc%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>
InvalidRequestError: The API deployment for the resource does not exist.
Getting the same error as the previous person, I do have all the deployments except text-babbage, but still receiving this error....Can you please help me? Traceback: File "/usr/local/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 561, in _run_script self._session_state.on_script_will_rerun(rerun_data.widget_states) File "/usr/local/lib/python3.9/site-packages/streamlit/runtime/state/safe_session_state.py", line 72, in on_script_will_rerun self._state.on_script_will_rerun(latest_widget_states) File "/usr/local/lib/python3.9/site-packages/streamlit/runtime/state/session_state.py", line 542, in on_script_will_rerun self._call_callbacks() File "/usr/local/lib/python3.9/site-packages/streamlit/runtime/state/session_state.py", line 555, in _call_callbacks self._new_widget_state.call_callback(wid) File "/usr/local/lib/python3.9/site-packages/streamlit/runtime/state/session_state.py", line 276, in call_callback callback(*args, *kwargs) File "/usr/local/src/myscripts/pages/10_Utils - DocumentSummary.py", line 8, in summarize , response = utils.get_completion(get_prompt(), max_tokens=500, model=os.getenv('OPENAI_ENGINES', 'text-davinci-003')) File "/usr/local/src/myscripts/utilities/utils.py", line 110, in get_completion response = openai.Completion.create( File "/usr/local/lib/python3.9/site-packages/openai/api_resources/completion.py", line 25, in create return super().create(args, **kwargs) File "/usr/local/lib/python3.9/site-packages/openai/api_resources/abstract/engine_apiresource.py", line 153, in create response, , api_key = requestor.request( File "/usr/local/lib/python3.9/site-packages/openai/api_requestor.py", line 226, in request resp, got_stream = self._interpret_response(result, stream) File "/usr/local/lib/python3.9/site-packages/openai/api_requestor.py", line 619, in _interpret_response self._interpret_response_line( File "/usr/local/lib/python3.9/site-packages/openai/api_requestor.py", line 679, in _interpret_response_line raise self.handle_error_response(