Browse Source

docs: better variable examples

Dax Raad 7 months ago
parent
commit
93c779cf48
1 changed files with 6 additions and 2 deletions
  1. 6 2
      packages/web/src/content/docs/docs/config.mdx

+ 6 - 2
packages/web/src/content/docs/docs/config.mdx

@@ -188,7 +188,9 @@ Use `{env:VARIABLE_NAME}` to substitute environment variables:
   "model": "{env:OPENCODE_MODEL}",
   "model": "{env:OPENCODE_MODEL}",
   "provider": {
   "provider": {
     "anthropic": {
     "anthropic": {
-      "api_key": "{env:ANTHROPIC_API_KEY}"
+      "options": {
+        "apiKey": "{env:ANTHROPIC_API_KEY}"
+        }
     }
     }
   }
   }
 }
 }
@@ -208,7 +210,9 @@ Use `{file:path/to/file}` to substitute the contents of a file:
   "instructions": ["{file:./custom-instructions.md}"],
   "instructions": ["{file:./custom-instructions.md}"],
   "provider": {
   "provider": {
     "openai": {
     "openai": {
-      "api_key": "{file:~/.secrets/openai-key}"
+      "options": {
+        "apiKey": "{file:~/.secrets/openai-key}"
+      }
     }
     }
   }
   }
 }
 }