Closed davidsbatista closed 2 months ago
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
components/generators/openai.py | 3 | 96.43% | ||
components/generators/chat/openai.py | 13 | 79.28% | ||
<!-- | Total: | 16 | --> |
Totals | |
---|---|
Change from base Build 10851825418: | -0.005% |
Covered Lines: | 7162 |
Relevant Lines: | 7934 |
FAILED test/components/generators/chat/test_azure.py::TestOpenAIChatGenerator::test_live_run - openai.NotFoundError: Error code: 404 - {'error': {'code': 'DeploymentNotFound', 'message': 'The API deployment for this resource does not exist. If you created the deployment within the last 5 minutes, please wait a moment and try again.'}}
FAILED test/components/generators/test_azure.py::TestAzureOpenAIGenerator::test_live_run - openai.NotFoundError: Error code: 404 - {'error': {'code': 'DeploymentNotFound', 'message': 'The API deployment for this resource does not exist. If you created the deployment within the last 5 minutes, please wait a moment and try again.'}}
I'm still trying to figure out what's going on with AzureOpenAIGenerator
FAILED test/components/generators/chat/test_azure.py::TestOpenAIChatGenerator::test_live_run - openai.NotFoundError: Error code: 404 - {'error': {'code': 'DeploymentNotFound', 'message': 'The API deployment for this resource does not exist. If you created the deployment within the last 5 minutes, please wait a moment and try again.'}} FAILED test/components/generators/test_azure.py::TestAzureOpenAIGenerator::test_live_run - openai.NotFoundError: Error code: 404 - {'error': {'code': 'DeploymentNotFound', 'message': 'The API deployment for this resource does not exist. If you created the deployment within the last 5 minutes, please wait a moment and try again.'}}
I'm still trying to figure out what's going on with
AzureOpenAIGenerator
The most likely issue is that the deployment name != the model name. You can try renaming the deployment name to the model name for the deployment you guys use for testing.
From Microsoft:
When you access the model via the API, you need to refer to the deployment name rather than the underlying model name in API calls, which is one of the key differences between OpenAI and Azure OpenAI. OpenAI only requires the model name. Azure OpenAI always requires deployment name, even when using the model parameter. In our docs, we often have examples where deployment names are represented as identical to model names to help indicate which model works with a particular API endpoint. Ultimately your deployment names can follow whatever naming convention is best for your use case.
@lbux thanks for the input, it was related to what you mentioned👍🏽
Related Issues
Proposed Changes:
init()
default model isgpt3.5-turbo
now changed togpt-4o-mini
How did you test it?
Checklist
fix:
,feat:
,build:
,chore:
,ci:
,docs:
,style:
,refactor:
,perf:
,test:
.