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

[wip] feat(agents-api,sdks): multimodal support #343

Merged
merged 19 commits into from
May 29, 2024

Conversation

creatorrr
Copy link
Contributor

@creatorrr creatorrr commented May 27, 2024

🚀 This description was created by Ellipsis for commit 2e897c1

Summary:

Enhances ChatML messages with multimodal support, updates SDKs, revises the database schema, adds a new debug utility, and fixes content length calculation in the 'Entry' class.

Key points:

  • Introduced multimodal support for ChatML messages (text and image content) in various classes and files.
  • Updated Python and TypeScript SDKs to handle new content types.
  • Modified database schema to support new multimodal features with backward compatibility.
  • Added a new debug utility pdb_on_exception for better error handling.
  • Minor change in get_developer_id to accept UUIDs directly.
  • Fixes content length calculation in Entry class for dictionary types.

Generated with ❤️ by ellipsis.dev

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Reviewed everything up to 953f9d9 in 1 minute and 24 seconds

More details
  • Looked at 1021 lines of code in 25 files
  • Skipped 3 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_fb9m71EE7XAZQd2M


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Incremental review on a8440fc in 1 minute and 35 seconds

More details
  • Looked at 516 lines of code in 22 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. sdks/ts/src/api/schemas/$doc_id.ts:6
  • Draft comment:
  type: "string",
  format: "uuid",
  • Reason this comment was not posted:
    Confidence of 0% on close inspection, compared to threshold of 50%.

Workflow ID: wflow_I6RfMLrQ71IevVKm


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

❌ Changes requested. Incremental review on 0f67e4a in 1 minute and 13 seconds

More details
  • Looked at 72 lines of code in 4 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_5pHlbzIhjLzYVg4q


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@creatorrr creatorrr changed the title [wip] feat: multimodal support [wip] feat(agents-api,sdks): multimodal support May 28, 2024
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Incremental review on 5ed236e in 2 minutes and 8 seconds

More details
  • Looked at 22 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. sdks/python/julep/api/client.py:829
  • Draft comment:
    The PR is supposed to introduce multimodal support for ChatML messages, but the changes in this Python SDK file do not reflect any updates related to handling new content types such as images or other multimedia elements. Please ensure that the SDK updates align with the PR's intent to support multimodal features.
  • Reason this comment was not posted:
    Confidence of 0% on close inspection, compared to threshold of 50%.

Workflow ID: wflow_ojKvKpVHiIxyuPYR


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

❌ Changes requested. Incremental review on dfad045 in 2 minutes and 36 seconds

More details
  • Looked at 180 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_c5M5AHPajdjBHoks


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

❌ Changes requested. Incremental review on b11cc4a in 1 minute and 22 seconds

More details
  • Looked at 56 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_2sZKR0Qt37xsaRUF


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

agents-api/agents_api/common/utils/debug.py Show resolved Hide resolved
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Incremental review on fb5cd60 in 2 minutes and 40 seconds

More details
  • Looked at 370 lines of code in 12 files
  • Skipped 1 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. sdks/python/julep/api/types/chat_ml_message_content.py:13
  • Draft comment:
    The union type for ChatMlMessageContent correctly includes str and typing.List[ChatMlMessageContentItem], aligning with the multimodal support described in the PR. This allows for both text and image content parts within ChatML messages.
  • Reason this comment was not posted:
    Confidence changes required: 0%
    The PR description mentions the introduction of multimodal support for ChatML messages, which includes handling both text and image content. The PR modifies the SDKs to handle these new content types. The changes in the SDKs should reflect the ability to handle these new types of content effectively. The PR also mentions updates to the Python and TypeScript SDKs, which should include the necessary changes to support these new features. The PR also mentions a new debug utility, which should be reviewed for proper implementation and usefulness in debugging.

Workflow ID: wflow_V9dqLo71FBbFGMZn


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

❌ Changes requested. Incremental review on 7d6288b in 1 minute and 32 seconds

More details
  • Looked at 22 lines of code in 1 files
  • Skipped 2 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_uixLAGX4yqXNSGq4


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

❌ Changes requested. Incremental review on 9975838 in 1 minute and 59 seconds

More details
  • Looked at 122 lines of code in 3 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_sAqlt4ejFzXMfhau


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

agents-api/agents_api/common/protocol/entries.py Outdated Show resolved Hide resolved
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

❌ Changes requested. Incremental review on ce03bb4 in 3 minutes and 25 seconds

More details
  • Looked at 15 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_FxQmhHyeE3bruubZ


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Incremental review on 627f494 in 2 minutes and 50 seconds

More details
  • Looked at 85 lines of code in 5 files
  • Skipped 0 files when reviewing.
  • Skipped posting 2 drafted comments based on config settings.
1. sdks/python/julep/api/types/chat_ml_message_content.py:7
  • Draft comment:
    The removal of imports related to image content handling in this file and 'input_chat_ml_message_content.py' seems inconsistent with the PR's goal of introducing multimodal support. Please ensure that all necessary components for handling different types of content, such as images, are correctly integrated.
  • Reason this comment was not posted:
    Confidence of 0% on close inspection, compared to threshold of 50%.
2. sdks/python/julep/api/types/input_chat_ml_message_content.py:7
  • Draft comment:
    The removal of imports related to image content handling in this file and 'chat_ml_message_content.py' seems inconsistent with the PR's goal of introducing multimodal support. Please ensure that all necessary components for handling different types of content, such as images, are correctly integrated.
  • Reason this comment was not posted:
    Confidence of 0% on close inspection, compared to threshold of 50%.

Workflow ID: wflow_cbzMGY0oiWhm9rE6


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Incremental review on fdb5515 in 1 minute and 25 seconds

More details
  • Looked at 153 lines of code in 4 files
  • Skipped 1 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. agents-api/agents_api/routers/sessions/session.py:449
  • Draft comment:
    The session memory feature is disabled with a FIXME comment. This could lead to unexpected behavior where session data is not being stored even if the remember setting is true. Please address this to ensure correct session management.
# if not final_settings.remember:
#     return
  • Reason this comment was not posted:
    Confidence of 0% on close inspection, compared to threshold of 50%.

Workflow ID: wflow_LITdxXRTxqr6csJZ


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

❌ Changes requested. Incremental review on 9b63985 in 2 minutes and 12 seconds

More details
  • Looked at 34 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_q9ULOk5f3IvYWrxm


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

sdks/python/julep/managers/session.py Show resolved Hide resolved
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

❌ Changes requested. Incremental review on f2640e6 in 1 minute and 43 seconds

More details
  • Looked at 34 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_TQOtgFPLrmTsXfOA


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

sdks/python/julep/managers/session.py Show resolved Hide resolved
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Incremental review on 2e897c1 in 1 minute and 12 seconds

More details
  • Looked at 13 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. agents-api/agents_api/common/protocol/entries.py:45
  • Draft comment:
    The change to calculate the length of the JSON string representation of the dictionary content is correct and necessary for proper token count estimation.
  • Reason this comment was not posted:
    Confidence changes required: 0%
    The code change in the token_count method of the Entry class is intended to fix the calculation of content_length when the content is a dictionary. Previously, the method was incorrectly assigning the JSON string representation of the dictionary to content_length instead of its length. The change correctly calculates the length of the JSON string, which is necessary for estimating the token count when the content is stored in a dictionary format.

Workflow ID: wflow_2T8zF2HaCHBmQF80


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@whiterabbit1983 whiterabbit1983 merged commit 7cd34fa into dev May 29, 2024
9 checks passed
@whiterabbit1983 whiterabbit1983 deleted the f/multimodal-support branch May 29, 2024 13:31
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