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

Azure OpenAI not working with Agents - Unknown parameter: 'tools[0].function.strict #127

Open
vishnureddysai opened this issue Oct 16, 2024 · 0 comments

Comments

@vishnureddysai
Copy link

This is issue due to azure open ai can someone try to solve it
Here's my code:

client = AzureOpenAI(
api_key=settings.OPENAI_KEY,
api_version=settings.OPENAI_VERSION,
azure_endpoint=settings.OPENAI_ENDPOINT,
timeout=5,
max_retries=5,
)

set_openai_client(client)

ceo = Agent(
name="CEO",
description="Responsible for client communication, task planning and management.",
instructions="You must converse with other agents to ensure complete task execution.", # can be a file like ./instructions.md
files_folder="./files", # files to be uploaded to OpenAI
schemas_folder="./schemas", # OpenAPI schemas to be converted into tools
temperature=0.5, # temperature for the agent
max_prompt_tokens=25000, # max tokens in conversation history
model=settings.OPENAI_MODEL_GPT_4o
)

dev = Dev(id=model=settings.OPENAI_MODEL_GPT_4o)

agency = Agency(
[ceo,
[ceo, dev]
]
)

agency.run_demo()

Error code: 400 - {'error': {'message': "Unknown parameter: 'tools[0].function.strict'.", 'type': 'invalid_request_error', 'param': 'tools[0].function.strict', 'code': 'unknown_parameter'}}

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

1 participant