add sse streaming to sdk
This commit is contained in:
parent
6e626afdcb
commit
0f1697b2ab
18 changed files with 497 additions and 172 deletions
|
|
@ -17,7 +17,7 @@ export async function createOpencodeServer(config?: ServerConfig) {
|
|||
config ?? {},
|
||||
)
|
||||
|
||||
const proc = spawn(`opencode`, [`servel`, `--hostname=${config.hostname}`, `--port=${config.port}`], {
|
||||
const proc = spawn(`opencode`, [`serve`, `--hostname=${config.hostname}`, `--port=${config.port}`], {
|
||||
signal: config.signal,
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue