-
Notifications
You must be signed in to change notification settings - Fork 1.3k
fix: Deprecate items when create conversation #4765
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
Conversation
mattf
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the items should not be returned when retrieving the conversation
|
thanks @franciscojavierarceo and @mattf , seeme we can just remove items from coversation, but end user can query item via GET /v1/conversations/{conversation_id} {
"id": "conv_123",
"object": "conversation",
"created_at": 1741900000,
"metadata": {"topic": "demo"}
}Create conversation {
"id": "conv_123",
"object": "conversation",
"created_at": 1741900000,
"metadata": {"topic": "demo"}
} |
5b49fe2 to
afc55f6
Compare
mattf
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add a test to verify that items is not returned on creation or retrieval
|
@mattf Done, thanks |
| conversation = await service.create_conversation(CreateConversationRequest(metadata={"test": "value"})) | ||
|
|
||
| # Verify items is None or not present in creation response | ||
| assert conversation.items is None, "items should be None when creating a conversation" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this tests that items exists and is none, it shouldn't exist
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Do not need items when create and retrive conversation
What does this PR do?
Fixed #4718