Skip to content
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

[FEATURE] [SDK] chat field support sdk #5378

Merged
merged 23 commits into from
Aug 9, 2024

Conversation

burtenshaw
Copy link
Contributor

Description

This PR implements chat field support on the SDK.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactor (change restructuring the codebase without changing functionality)
  • Improvement (change adding some improvement to an existing functionality)
  • Documentation update

How Has This Been Tested

Checklist

  • I added relevant documentation
  • I followed the style guidelines of this project
  • I did a self-review of my code
  • I made corresponding changes to the documentation
  • I confirm My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have added relevant notes to the CHANGELOG.md file (See https://keepachangelog.com/)

@@ -31,11 +31,12 @@ class ImageFieldSettings(BaseModel):
type: Literal["image"] = "image"


class ChatFieldSettings(BaseModel):
type: Literal["chat"] = "chat"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we want to include something like user_role, assitant_role?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that's necessary for the first iteration. But it would be nice for a later iteration where we allow the user to define the 'chat schema' based on their own data.

Base automatically changed from feat/chat-field-support-server to feat/chat-field-support August 8, 2024 11:34
@burtenshaw burtenshaw changed the base branch from feat/chat-field-support to develop August 8, 2024 13:25
@burtenshaw burtenshaw changed the base branch from develop to feat/chat-field-support August 8, 2024 13:26
Copy link
Member

@davidberenstein1957 davidberenstein1957 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @burtenshaw, looking good. I think we might want to add this to the from/to/disk/hub methods too.

@burtenshaw
Copy link
Contributor Author

Hi @burtenshaw, looking good. I think we might want to add this to the from/to/disk/hub methods too.

Sorry @davidberenstein1957 . I don't get this one. How would we add this to those methods?

@burtenshaw burtenshaw merged commit af0b40e into feat/chat-field-support Aug 9, 2024
12 checks passed
@burtenshaw burtenshaw deleted the feat-chat-field-support-sdk branch August 9, 2024 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants