mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-04 23:40:48 +00:00
docs: edit
This commit is contained in:
parent
34c6c8494a
commit
8b01676ec0
1 changed files with 4 additions and 4 deletions
|
|
@ -167,7 +167,7 @@ const message = await client.session.chat({
|
|||
id: session.id,
|
||||
providerID: "anthropic",
|
||||
modelID: "claude-3-5-sonnet-20241022",
|
||||
parts: [{ type: "text", text: "Hello!" }],
|
||||
parts: [{ type: "text", text: "Hello!" }]
|
||||
})
|
||||
```
|
||||
|
||||
|
|
@ -210,7 +210,7 @@ const content = await client.file.read({ path: "src/index.ts" })
|
|||
await client.log.write({
|
||||
service: "my-app",
|
||||
level: "info",
|
||||
message: "Operation completed",
|
||||
message: "Operation completed"
|
||||
})
|
||||
```
|
||||
|
||||
|
|
@ -257,7 +257,7 @@ const agents = await client.agent.list()
|
|||
await client.tui.appendPrompt({ text: "Add this to prompt" })
|
||||
await client.tui.showToast({
|
||||
message: "Task completed",
|
||||
variant: "success",
|
||||
variant: "success"
|
||||
})
|
||||
```
|
||||
|
||||
|
|
@ -277,7 +277,7 @@ await client.tui.showToast({
|
|||
await client.auth.set({
|
||||
id: "anthropic",
|
||||
type: "api",
|
||||
key: "your-api-key",
|
||||
key: "your-api-key"
|
||||
})
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue