Repository navigation
Expand file tree
/
Copy pathagent_config.yaml
More file actions
32 lines (31 loc) · 1.59 KB
/
Copy pathagent_config.yaml
File metadata and controls
32 lines (31 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Agent Configuration
# ###################
# Variables can be defined from env. variables
# or directly in the config file.
# Config file values will override env. variables if both are set.
# If cloned, env. variables can be defined in a .env file at the root of the repository.
#
# OpenCode (opencode.ai) is the only supported agent backend: a local OpenCode
# server backs every LLM call. There is no API key here -- the credential
# lives in OpenCode's own config, entered once via `opencode auth login` or
# the Weights Studio landing page's login modal.
agent:
# URL of the local OpenCode server (can also be set as env variable
# OPENCODE_URL). Defaults to http://127.0.0.1:4096. This is the SAME shared
# root env var the frontend reads, so set it once and both sides point at
# one server.
opencode_url: http://127.0.0.1:4096
# OpenCode model, "providerID/modelID" (can also be set as env variable
# OPENCODE_MODEL).
#
# Left EMPTY on purpose. Empty means "follow OpenCode's own config" -- which
# is what the studio's model picker (.wl-ag-model) writes on every pick, via
# PUT /config -- so choosing a model in the UI also changes the model
# weightslab's own queries use, and it is re-checked before every turn.
# When OpenCode names no model either, the fallback is "opencode/big-pickle".
#
# A value here SEEDS the choice: it is used when nothing has been chosen in
# OpenCode's config yet (and is published there, so the studio shows it), but
# a model picked in the UI afterwards wins. Set OPENCODE_MODEL instead to
# PIN a model that nothing can override.
opencode_model: ""