Skip to content

Conversation

sidhantkmund
Copy link
Member

Description:

This PR addresses an issue where large chat templates stored in the model's custom metadata were being returned as improperly encoded strings, resulting in frontend inference failures.

The returned response is now safely decoded to UTF-8 when it’s in bytes form, preserving chat template regardless of size.


Changes:

  • Updated the get() handler in AquaModelChatTemplateHandler to correctly decode byte strings returned by get_custom_metadata_artifact.
  • Adjusted related unit tests to reflect updated error messages and behavior.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jul 14, 2025
@kumar-shivam-ranjan kumar-shivam-ranjan self-requested a review July 14, 2025 11:23
Copy link
Contributor

@kumar-shivam-ranjan kumar-shivam-ranjan left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

📌 Cov diff with main:

Coverage-100%

📌 Overall coverage:

Coverage-58.49%

@sidhantkmund sidhantkmund merged commit e2fb636 into main Jul 15, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants