-
Notifications
You must be signed in to change notification settings - Fork 2.6k
refactor: use communication model in AI history #15540
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
refactor: use communication model in AI history #15540
Conversation
4d57aba
to
4ae1f25
Compare
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.
Thank you very much! This looks great to me and works very well. It is a pleasure to see this manual request recording gone! :-)
Also great work on the history view improvements. Looks good and works well. I especially like the compact and raw view. Great for debugging. I'm just not sure how useful the new-line rendering switch is. As we are just showing pretty-printed JSON, the new lines are encoded anyway, or am I misunderstanding the functionality of this switch?
4ae1f25
to
a36d0a3
Compare
As #15409 is now merged, I updated the PR to be based on |
a36d0a3
to
34fa80d
Compare
Refactors the AI history view to use the new AI communication model as data input. Removes the now obsolete communication recording service. The history now supports two visual modes: "raw" and "compact" for easier inspection. Also added an option to toggle newline rendering. The ai-history package now depends on ai-chat-ui instead of the other way around. Therefore the AI history is now optional. Resolves eclipse-theia#15539 Contributed on behalf of STMicroelectronics.
34fa80d
to
55d5b0b
Compare
@planger Can you review this today, so we can get this in until tomorrow? Changes since your last review:
|
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.
Thank you for the rebase and the revision! Works great and code looks good!
What it does
Follow Up PR to #15409 which introduces a new generic AI communication model.
Refactors the AI history view to use the new AI communication model as
data input. Removes the now obsolete communication recording service.
The history now supports two visual modes: "raw" and "compact" for
easier inspection. Also added an option to toggle newline rendering.
Resolves #15539
How to test
Send requests and check that the AI history view shows the requests and responses. Play around with the new AI history view options: raw/compact mode and enable/disable newline rendering.
Follow-ups
Breaking changes
Attribution
Contributed by STMicroelectronics
Review checklist
Reminder for reviewers