Enhance assistant instructions for clarity and conciseness. Update models for builtin tools and workflow authoring skills to gpt-5.1. Improve text formatting in StreamRenderer for better readability.

This commit is contained in:
tusharmagar 2025-11-18 16:17:52 +05:30
parent cfaf160e89
commit 570543e1c7
5 changed files with 18 additions and 12 deletions

View file

@ -203,12 +203,12 @@ export class StreamRenderer {
}
private onTextDelta(delta: string) {
if (!this.textActive) this.onTextStart();
// Add subtle left margin to assistant text for better readability
const formattedDelta = this.neutral(delta);
if (delta.includes("\n")) {
this.write(delta.replace(/\n/g, "\n "));
this.write(formattedDelta.replace(/\n/g, "\n "));
} else {
this.write(delta);
this.write(formattedDelta);
}
}
@ -305,6 +305,10 @@ export class StreamRenderer {
private yellow(text: string): string {
return "\x1b[33m" + text + "\x1b[0m";
}
private neutral(text: string): string {
return "\x1b[38;5;250m" + text + "\x1b[0m";
}
}