diff options
| author | Dax Raad <[email protected]> | 2025-05-29 13:02:48 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-05-29 13:02:48 -0400 |
| commit | f9f41e205d83ffa74492b4238060c807afb9e249 (patch) | |
| tree | b00237b42585ffc9adcd27dc076f404177b39e9e /js/src/index.ts | |
| parent | 80597cd3fdf149cef87db55f03a3cc0bfd723a7a (diff) | |
| download | opencode-f9f41e205d83ffa74492b4238060c807afb9e249.tar.gz opencode-f9f41e205d83ffa74492b4238060c807afb9e249.zip | |
add summarize
Diffstat (limited to 'js/src/index.ts')
| -rw-r--r-- | js/src/index.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/js/src/index.ts b/js/src/index.ts index 1f6c7ae26..df6c0aee2 100644 --- a/js/src/index.ts +++ b/js/src/index.ts @@ -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") { |
