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

feat(copilot): support separate Protobuf and Avro schema generation prompts #1889

Merged
merged 2 commits into from
Mar 11, 2025

Conversation

ysfscream
Copy link
Member

PR Checklist

If you have any questions, you can refer to the Contributing Guide

What is the current behavior?

When requesting encoding/decoding help for message formats like Protobuf and Avro, the system sometimes returns both formats together inconsistently. The output formatting is also inconsistent across different AI models, with some responses lacking proper Markdown code blocks and structure.

Issue Number

What is the new behavior?

  • Separated Protobuf and Avro encoding/decoding into distinct system prompts
  • Improved prompt instructions to enforce consistent Markdown formatting with proper code blocks
  • Added constraints to ensure AI responses maintain consistent structure and format
  • Optimized custom function return formats with explicit instructions for code block usage

Does this PR introduce a breaking change?

  • Yes
  • No

Specific Instructions

Please test with various encoding/decoding scenarios to ensure the AI properly separates Protobuf and Avro responses and consistently uses proper Markdown formatting with code blocks.

Other information

@ysfscream ysfscream added enhancement New feature or request refactor Refactor code or architecture desktop MQTTX Desktop labels Mar 11, 2025
@ysfscream ysfscream added this to the v1.12.0 milestone Mar 11, 2025
@ysfscream ysfscream requested a review from Red-Asuka March 11, 2025 03:25
@ysfscream ysfscream self-assigned this Mar 11, 2025
@Red-Asuka Red-Asuka merged commit cb470d6 into main Mar 11, 2025
4 checks passed
@Red-Asuka Red-Asuka deleted the ysf/desktop branch March 11, 2025 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
desktop MQTTX Desktop enhancement New feature or request refactor Refactor code or architecture
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants