Hi, Can anyone help me with this issue?
dependency:
llama-index 0.9.5
openai 1.3.4
I set up the api on AzureOpenai with:
- model = gpt-4(0613)
- model = gpt-4(1106-Preview)
- model = gpt-35-turbo(0613)
I initialize llm by
llm = AzureOpenAI(
model="gpt-35-turbo", # or model="gpt-4(0613)" or model="gpt-4(1106-Preview)"
deployment_name="NAME",
api_key="API",
azure_endpoint="ENDPOINT",
api_version="2023-08-01-preview",
)
When I set up the PydanticSingleSelector on Router Query Engine:
selector=PydanticSingleSelector.from_defaults(llm=llm)
It works well with llm = "gpt-35-turbo" or "gpt-4(1106-Preview)",
but with "gpt-4(0613)", it returned this error:
BadRequestError: Error code: 400 - {'error': {'message': 'Unrecognized request arguments supplied: tool_choice, tools', 'type': 'invalid_request_error', 'param': None, 'code': None}}