Skip to content

GPTRunner discards text response when there is tool call #4

@vantaa89

Description

@vantaa89

Hi, thank you for the great work!

While working on your benchmark, I discovered that GPTRunner discards the GPT's text output whenever a tool call occurs.

self.model.messages.append({"role": "assistant", "content": None, "tool_calls": llm_response.tool_calls})

However, it seems that this is not the case for other models, such as claude

self.model.messages.append({"role": "assistant", "content": llm_response.content})

, which, in turn, discards the function call history while maintaining the text output. I am wondering if this is intended, or if I am misunderstanding the logic.

Thank you.

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