Elffuss BraidHub

kikocis/continue public

Update configuring-models-rules-tools.mdx
Changeset272fbbb9c88e67f996aec0c5b315f04b99d222cfd05faf7dd144af3b14e80786
AuthorPatrick Erichsen <patrick.a.erichsen@gmail.com> · 2025-09-23 10:51 -07:00
CommitterPatrick Erichsen <patrick.a.erichsen@gmail.com> · 2025-09-23 10:51 -07:00
Parents2cb7a36ca613

Browse the files at this changeset

1 file changed

modified docs/guides/configuring-models-rules-tools.mdx +46 −38
@@ -50,6 +50,25 @@
5050
5151 </Columns>
5252
53+## Hub
54+
55+Continue hub uses a slug in the format of `owner/item-name` to resolve blocks.
56+
57+For example, to use the [Claude 4 Sonnet model](https://hub.continue.dev/anthropic/claude-4-sonnet), you'd reference it as `anthropic/claude-4-sonnet`.
58+
59+Import from the hub using the `uses` syntax alongside your custom configurations:
60+
61+```yaml config.yaml highlight={6}
62+name: Team Agent
63+version: 1.0.0
64+schema: v1
65+
66+models:
67+ - uses: anthropic/claude-4-sonnet
68+ with:
69+ ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} # Use a hub secret
70+```
71+
5372 ### Organization
5473
5574 Organize your local configurations using these directories:
@@ -70,7 +89,13 @@
7089
7190 ## Working with Secrets
7291
73-Local configurations can use mustache notation for secrets (`${{ secrets.SECRET_NAME }}`) which read from:
92+Models, and many MCP servers, require a secret for things like API keys.
93+
94+On the hub, you can configure secrets when adding a model or MCP server.
95+
96+This will use mustache notation to pass the secret, eg `${{ secrets.SECRET_NAME }}`
97+
98+When configuring a local model or MCP server, you can use the same mustache notation for secrets which read from:
7499
75100 <Columns cols={2}>
76101 <Card title="Global" icon="globe">
@@ -82,26 +107,11 @@
82107 </Card>
83108 </Columns>
84109
85-## Inputs and Customization
86-
87-Configurations can accept user inputs for customization by defining an `${{ inputs.SECRET_NAME }}` value.
88-
89-For example, here is how you could require that the user provide a value for the `apiKey` property on a model:
90-
91-```yaml title="config.yaml" highlight={8}
92-name: myprofile/custom-model
93-version: 1.0.0
94-schema: v1
95-
96-models:
97- - name: My Favorite Model
98- # ... other model properties ...
99- apiKey: ${{ inputs.SECRET_NAME }}
100-```
110+## Overriding Properties
101111
102-Users then map their secret to this input using a `${{ secrets.SECRET_NAME }}` value that maps to a property name which matches the required input, e.g. `SECRET_NAME`. Note that on the hub, this mapping is created automatically for you.
112+You can directly override properties using the `override` syntax:
103113
104-```yaml title="config.yaml" highlight={8}
114+```yaml title="config.yaml" highlight={10-13}
105115 name: myprofile/custom-agent
106116 version: 1.0.0
107117 schema: v1
@@ -109,33 +119,35 @@
109119 models:
110120 - uses: myprofile/custom-model
111121 with:
112- SECRET_NAME: ${{ secrets.SECRET_NAME }}
122+ ANTHROPIC_API_KEY: ${{ secrets.MY_ANTHROPIC_API_KEY }}
123+ TEMP: 0.9
124+ override:
125+ roles:
126+ - chat
113127 ```
114128
115-Note that hub secrets can be passed as inputs using the mustache format: `${{ secrets.SECRET_NAME }}`.
129+## Advanced
116130
117-## Hub
131+### Inputs
118132
119-Hub items are identified by slugs in the format `owner/item-name`. For example, to use the [Claude 4 Sonnet model](https://hub.continue.dev/anthropic/claude-4-sonnet), you'd reference it as `anthropic/claude-4-sonnet`.
133+Models and MCP server authors can configure inputs that require the user to provide a secret value by defining a `${{ inputs.SECRET_NAME }}` value.
120134
121-Import from the hub using the `uses` syntax alongside your custom configurations:
135+For example, here is how you could require that the user provide a value for the `apiKey` property on a model:
122136
123-```yaml config.yaml highlight={6}
124-name: Team Agent
137+```yaml title="config.yaml" highlight={8}
138+name: myprofile/custom-model
125139 version: 1.0.0
126140 schema: v1
127141
128142 models:
129- - uses: anthropic/claude-4-sonnet
130- with:
131- ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} # Use a hub secret
143+ - name: My Favorite Model
144+ # ... other model properties ...
145+ apiKey: ${{ inputs.SECRET_NAME }}
132146 ```
133147
134-## Overriding Properties
135-
136-You can directly override properties using the `override` syntax:
148+Users then map their secret to this input using a `${{ secrets.SECRET_NAME }}` value that maps to a property name which matches the required input, e.g. `SECRET_NAME`.
137149
138-```yaml title="config.yaml" highlight={10-13}
150+```yaml title="config.yaml" highlight={8}
139151 name: myprofile/custom-agent
140152 version: 1.0.0
141153 schema: v1
@@ -143,11 +155,7 @@
143155 models:
144156 - uses: myprofile/custom-model
145157 with:
146- ANTHROPIC_API_KEY: ${{ secrets.MY_ANTHROPIC_API_KEY }}
147- TEMP: 0.9
148- override:
149- roles:
150- - chat
158+ SECRET_NAME: ${{ secrets.SECRET_NAME }}
151159 ```
152160
153161 ## Next Steps