Skip to content

agent function_call :openai.BadRequestError: Error code: 400 - {'error': {'message': "Invalid value for 'content': expected a string, got null. (req #5699

@auserwn

Description

@auserwn

What happened?

Describe the bug
A clear and concise description of what the bug is.
If it is a question or suggestion, please use Discussions
instead.

To Reproduce
Steps to reproduce the behavior. Please include code and outputs such as stacktrace.

  • If your input is just "I tried X, and it didn't work" or
    "X is not working", your issue will be ignored.
  • If your input is not well formatted, it will hurt readability and
    may be ignored as well.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Which packages was the bug in?

Python AgentChat (autogen-agentchat>=0.4.0)

AutoGen library version.

Python dev (main branch)

Other library version.

No response

Model used

No response

Model provider

None

Other model provider

No response

Python version

None

.NET version

None

Operating system

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.2Issues which are related to the pre 0.4 codebaseawaiting-op-responseIssue or pr has been triaged or responded to and is now awaiting a reply from the original poster

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions