You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are planning to add an optional id field to all Chat Message classes, see #17835. This will allow producers of messages (eg. Chat Models, Tool Executors, your own applications) to optionally add an id to a message. This id can then be used by your application to distinguish or dedupe messages.
Here is an example of a PR which modifies ChatOpenAI to passthrough the message id generated by OpenAI to the messages it outputs: #17837
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We are planning to add an optional
id
field to all Chat Message classes, see #17835. This will allow producers of messages (eg. Chat Models, Tool Executors, your own applications) to optionally add an id to a message. This id can then be used by your application to distinguish or dedupe messages.Here is an example of a PR which modifies ChatOpenAI to passthrough the message id generated by OpenAI to the messages it outputs: #17837
Any questions or comments let us know!
Beta Was this translation helpful? Give feedback.
All reactions