-
Notifications
You must be signed in to change notification settings - Fork 338
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
Endpoint PUT
conversation history
#896
Comments
I’d like to work on this issue . Could you please assign it to me? |
Thanks @dave90, I'm not sure about the data model here. What do you suggest? Assigned to you, but please let's design before writing ;) |
I think that the best solution is using :
This format ensures consistency with the objects that are returned in the GET /conversation_history endpoint. |
I think the best approach would be to use the following Pydantic class model for the endpoint PUT /conversation_history:
What do you think @pieroit ? |
Hi @dave90 thanks and sorry for the dealy After that, do as you whish on this endpoint, we can have it without documenting it, trying it out, when we are ready we document it Also please note from the next release on it will be possible to add custom endpoints (#964 ), so in the next months we can focus on having fewer endpoints, but more solid and with types - in line with the work you started months ago ;) |
Hi @pieroit thanks for the update! |
Ok sounds the right strategy. |
As suggeste in #889 , we could add an endpoint to impose a convo history.
(
GET
andDELETE
already exists).As for the payload, not sure if we can have a custom Pydantic model replicating this structure:
Or try to reuse the objects already established to deal with conversation turns:
CatMessage
UserMessage
(see here)
The text was updated successfully, but these errors were encountered: