mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-21 17:54:23 +01:00
add summarize
This commit is contained in:
@@ -101,6 +101,22 @@ cli
|
||||
},
|
||||
],
|
||||
});
|
||||
await Session.summarize({
|
||||
sessionID: session.id,
|
||||
providerID,
|
||||
modelID,
|
||||
});
|
||||
await Session.chat({
|
||||
sessionID: session.id,
|
||||
providerID,
|
||||
modelID,
|
||||
parts: [
|
||||
{
|
||||
type: "text",
|
||||
text: "This is a test message",
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
for (const part of result.parts) {
|
||||
if (part.type === "text") {
|
||||
|
||||
Reference in New Issue
Block a user