Skip to content

Commit 338022a

Browse files
committed
Incorporated Jordan's comment
1 parent f0a3155 commit 338022a

File tree

1 file changed

+8
-18
lines changed

1 file changed

+8
-18
lines changed

modules/developer-lightspeed/proc-changing-your-llm-provider.adoc

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -28,27 +28,17 @@ lightspeed:
2828
url: _<my_new_url>_
2929
token: _<my_new_token>_
3030
----
31-
** Alternatively, you can set the `id`, `url`, and `token` values in a Kubernetes Secret and reference them using environment variables in your application configuration as shown in the following code:
32-
+
31+
** You can set the `id`, `url`, and `token` values in a Kubernetes Secret if you want and reference them as environment variables using the `envFrom` section.
3332
[source,yaml]
3433
----
35-
env:
36-
- name: _<my_new_url>_
37-
valueFrom:
38-
secretKeyRef:
39-
name: my-secret
40-
key: _<my_new_url>_
41-
- name: _<my_new_provider>_
42-
valueFrom:
43-
secretKeyRef:
44-
name: my-secret
45-
key: _<my_new_provider>_
46-
- name: _<my_new_token>_
47-
valueFrom:
48-
secretKeyRef:
49-
name: my-secret
50-
key: _<my_new_token>_
34+
containers:
35+
- name: my-container
36+
image: my-image
37+
envFrom:
38+
- secretRef:
39+
name: my-secret
5140
----
41+
5242
* You can add new LLM providers by updating the `rcsconfig.yaml` file.
5343
.. In the `llm_providers` section within your `rcsconfig.yaml` file, add your new provider configuration below the mandatory dummy provider block as shown in the following code:
5444
+

0 commit comments

Comments
 (0)