mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-26 17:06:23 +02:00
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:
parent
cfaf160e89
commit
570543e1c7
5 changed files with 18 additions and 12 deletions
|
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue