chore: generate

This commit is contained in:
opencode-agent[bot]
2026-05-08 20:57:36 +00:00
parent 5bb7b23440
commit ba8c920639
19 changed files with 49 additions and 75 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ const request = LLM.request({
prompt: "Say hello.",
})
const response = yield* LLMClient.generate(request)
const response = yield * LLMClient.generate(request)
```
`LLM.request(...)` builds an `LLMRequest`. `LLMClient.generate(...)` selects a registered route by `request.model.route`, builds the provider-native body, asks the route's transport for a real `HttpClientRequest.HttpClientRequest`, sends it through `RequestExecutor.Service`, parses the provider stream into common `LLMEvent`s, and finally returns an `LLMResponse`.