mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-23 10:44:21 +01:00
docs: clarify config behavior and remove theme example
This commit is contained in:
@@ -65,7 +65,7 @@ console.log(`Server running at ${server.url}`)
|
|||||||
server.close()
|
server.close()
|
||||||
```
|
```
|
||||||
|
|
||||||
You can also pass a configuration object to customize the server behavior:
|
You can also pass a configuration object to customize the server behavior. The server will still pick up your `opencode.json` file as usual, but you can override or add additional configuration inline:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
import { createOpencodeServer } from "@opencode-ai/sdk"
|
import { createOpencodeServer } from "@opencode-ai/sdk"
|
||||||
@@ -74,7 +74,6 @@ const server = await createOpencodeServer({
|
|||||||
hostname: "127.0.0.1",
|
hostname: "127.0.0.1",
|
||||||
port: 4096,
|
port: 4096,
|
||||||
config: {
|
config: {
|
||||||
theme: "dark",
|
|
||||||
model: "anthropic/claude-3-5-sonnet-20241022",
|
model: "anthropic/claude-3-5-sonnet-20241022",
|
||||||
agent: {
|
agent: {
|
||||||
general: {
|
general: {
|
||||||
|
|||||||
Reference in New Issue
Block a user