Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Specify recipient of tool response in harmony example #2131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Joshua-Chin wants to merge 1 commit into openai:main
base: main
Choose a base branch
Loading
from Joshua-Chin:patch-1

Conversation

Copy link

@Joshua-Chin Joshua-Chin commented Sep 11, 2025

Summary

This PR specifies the assistant as the recipient of the tool message in the OpenAI Harmony code example.

Motivation

Under the Handling tool calls section, it states that:

A tool message has the following format:

<|start|>{toolname} to=assistant<|channel|>commentary<|message|>{output}<|end|>

So in our example above

<|start|>functions.get_current_weather to=assistant<|channel|>commentary<|message|>{"sunny": true, "temperature": 20}<|end|>

The code in its current state does not include the to=assistant text section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /