summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAyush Walekar <[email protected]>2025-12-11 09:26:23 +0530
committerGitHub <[email protected]>2025-12-10 21:56:23 -0600
commitd93c8c7604d73d2bfbc5b02c44ddd1b50c70e25c (patch)
tree8d8ba32e9a32127ccddebccb5b5171e47b6297b1
parent7eb509db1486a65a198dd62683d6830e98476707 (diff)
downloadopencode-d93c8c7604d73d2bfbc5b02c44ddd1b50c70e25c.tar.gz
opencode-d93c8c7604d73d2bfbc5b02c44ddd1b50c70e25c.zip
docs: update doc sdk.mdx (#5315)
-rw-r--r--packages/web/src/content/docs/sdk.mdx28
1 files changed, 14 insertions, 14 deletions
diff --git a/packages/web/src/content/docs/sdk.mdx b/packages/web/src/content/docs/sdk.mdx
index ca20277be..4f9a2959f 100644
--- a/packages/web/src/content/docs/sdk.mdx
+++ b/packages/web/src/content/docs/sdk.mdx
@@ -37,13 +37,13 @@ This starts both a server and a client
#### Options
-| Option | Type | Description | Default |
-| --------------- | ---------- | -------------------------------- | ----------------------- |
-| `baseUrl` | `string` | URL of the server | `http://localhost:4096` |
-| `fetch` | `function` | Custom fetch implementation | `globalThis.fetch` |
-| `parseAs` | `string` | Response parsing method | `auto` |
-| `responseStyle` | `string` | Return style: `data` or `fields` | `fields` |
-| `throwOnError` | `boolean` | Throw errors instead of return | `false` |
+| Option | Type | Description | Default |
+| ---------- | ------------- | ------------------------------ | ----------- |
+| `hostname` | `string` | Server hostname | `127.0.0.1` |
+| `port` | `number` | Server port | `4096` |
+| `signal` | `AbortSignal` | Abort signal for cancellation | `undefined` |
+| `timeout` | `number` | Timeout in ms for server start | `5000` |
+| `config` | `Config` | Configuration object | `{}` |
---
@@ -81,13 +81,13 @@ const client = createOpencodeClient({
#### Options
-| Option | Type | Description | Default |
-| ---------- | ------------- | ------------------------------ | ----------- |
-| `hostname` | `string` | Server hostname | `127.0.0.1` |
-| `port` | `number` | Server port | `4096` |
-| `signal` | `AbortSignal` | Abort signal for cancellation | `undefined` |
-| `timeout` | `number` | Timeout in ms for server start | `5000` |
-| `config` | `Config` | Configuration object | `{}` |
+| Option | Type | Description | Default |
+| --------------- | ---------- | -------------------------------- | ----------------------- |
+| `baseUrl` | `string` | URL of the server | `http://localhost:4096` |
+| `fetch` | `function` | Custom fetch implementation | `globalThis.fetch` |
+| `parseAs` | `string` | Response parsing method | `auto` |
+| `responseStyle` | `string` | Return style: `data` or `fields` | `fields` |
+| `throwOnError` | `boolean` | Throw errors instead of return | `false` |
---