Skip to content

Error: OpenAIMessage is missing the 'content' field. #3017

Description

@bamecho

What version of Kimi Code is running?

0.36.0

Which open platform/subscription were you using?

custom provider

Which model were you using?

internal model with openai chat completions

What platform is your computer?

Microsoft Windows NT 10.0.26100.0 x64

What issue are you seeing?

In the assistant message, only tool_calls information is present while the text information is missing; This causes the content: [] to become content = undefined during OpenAI Assistant message conversion, resulting in the content field being omitted from the final JSON output. —meaning the content within the type: assistant JSON should be null rather than undefined.

LiteLLM return error: 422, message.6.content invalid input

What steps can reproduce the bug?

let kimi-code call some tools many times.

What is the expected behavior?

No response

Additional information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions