Skip to content

Allow manually setting ToolCallId of Message #316

Answered by StephenHodgson
sibbl asked this question in Q&A
Discussion options

You must be logged in to vote

As described above, I'm using chat completion. No assistants and no threads. I've just checked again and see no way to pass/add a OpenAI.Threads.ToolOutput object to the OpenAI.Chat.Message, OpenAI.Tool or OpenAI.Function classes.

Ah, yes I seem to be confused. for Chat Request it is a bit different since you have to pass the Tool object you intend to use back with a new Message with the Role.Tool and the function result.

You are correct, There should be a way to set the ToolCallId in the Message.ctr.

That being said, I believe that the Tool.Id is prepopulated from the API response object, and you won't actually know which tool id to use yourself. I think atm you have to pass a Tool obj…

Replies: 1 comment 17 replies

Comment options

You must be logged in to vote
17 replies
@ADefWebserver
Comment options

@StephenHodgson
Comment options

@sibbl
Comment options

@StephenHodgson
Comment options

Answer selected by StephenHodgson
@ADefWebserver
Comment options

@StephenHodgson
Comment options

@sibbl
Comment options

@ADefWebserver
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
3 participants
Converted from issue

This discussion was converted from issue #315 on May 31, 2024 15:12.