Skip to content

Python: temperature and top_p not valid params #2573

@amit12cool

Description

@amit12cool

On running the sample https://github.com/microsoft/agent-framework/blob/main/python/samples/getting_started/declarative/microsoft_learn_agent.py I get the below error

agent_framework.exceptions.ServiceResponseException: <class 'agent_framework_azure_ai._client.AzureAIClient'> service failed to complete the prompt: Error code: 400 - {'error': {'code': 'invalid_payload', 'message': 'Invalid payload', 'param': None, 'type': 'invalid_request_error', 'details': [{'code': 'ValidationError', 'message': 'Not allowed when agent is specified.', 'param': 'temperature', 'type': 'error'}, {'code': 'ValidationError', 'message': 'Not allowed when agent is specified.', 'param': 'top_p', 'type': 'error'}], 'additionalInfo': {'request_id': '10f1c87bf01a1a0c8cc42e424d9b5064'}}}

Metadata

Metadata

Assignees

Labels

agentsIssues related to single agentspythonv1.0Features being tracked for the version 1.0 GA

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions