Skip to content

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

@vishnureddysai

Description

@vishnureddysai

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'}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions