chore: consolidate model utils and drive-by cleanups (#476)
Signed-off-by: Thibault Sottiaux <tibo@openai.com>
This commit is contained in:
committed by
GitHub
parent
dc276999a9
commit
3c4f1fea9b
@@ -744,7 +744,7 @@ export class AgentLoop {
|
||||
for await (const event of stream as AsyncIterable<ResponseEvent>) {
|
||||
log(`AgentLoop.run(): response event ${event.type}`);
|
||||
|
||||
// process and surface each item (no‑op until we can depend on streaming events)
|
||||
// process and surface each item (no-op until we can depend on streaming events)
|
||||
if (event.type === "response.output_item.done") {
|
||||
const item = event.item;
|
||||
// 1) if it's a reasoning item, annotate it
|
||||
@@ -936,7 +936,7 @@ export class AgentLoop {
|
||||
],
|
||||
});
|
||||
} catch {
|
||||
/* no‑op – emitting the error message is best‑effort */
|
||||
/* no-op – emitting the error message is best‑effort */
|
||||
}
|
||||
this.onLoading(false);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user