Skip to content

Improvements for Function Calling #462

@stippi

Description

@stippi

Congratulations on merging #451 ! It's really great to have this available. I'm hoping for two improvements:

  1. Currently, it is not possible to supply a system prompt together with tools. From reading the diff... have you experimented with simply merging the provided system prompt with the "official" prompt by the Hermes-2-Pro team? By "merging" I mean to simply append the part after "You are a tool calling AI" to the provided system prompt.

  2. Streaming the tool call array JSON while it's being formed as "content" is not compliant with the OpenAI API. GPT-4 might reply to the user and invoke tools concurrently, so I guess my application is not the only one to stream "content" to the user always and expect it to be meant for the user to see. I think the model needs to be instructed to output the tools array between special tags, which are filtered from content.

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