You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: samples/managed-llm/README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,19 +11,19 @@ Using the [Defang OpenAI Access Gateway](#defang-openai-access-gateway), the fea
11
11
12
12
This allows switching from OpenAI to the Managed LLMs on supported cloud platforms without modifying your application code.
13
13
14
-
You can configure the `MODEL` and `ENDPOINT_URL` for the LLM separately for local development and production environments.
14
+
You can configure the `MODEL` and `LLM_URL` for the LLM separately for local development and production environments.
15
15
* The `MODEL` is the LLM Model ID you are using.
16
-
* The `ENDPOINT_URL` is the bridge that provides authenticated access to the LLM model.
16
+
* The `LLM_URL` is the bridge that provides authenticated access to the LLM model.
17
17
18
18
Ensure you have enabled model access for the model you intend to use. To do this, you can check your [AWS Bedrock model access](https://docs.aws.amazon.com/bedrock/latest/userguide/model-access-modify.html) or [GCP Vertex AI model access](https://cloud.google.com/vertex-ai/generative-ai/docs/control-model-access).
19
19
20
-
To learn about available LLM models in Defang, please see our [Model Mapping documentation](https://docs.defang.io/docs/concepts/managed-llms/openai-access-gateway#model-mapping).
20
+
To learn about available LLM models in Defang, please see our [Model Mapping documentation](https://docs.defang.io/docs/concepts/managed-llms/openai-access-gateway#model-mapping).
21
21
22
22
For more about Managed LLMs in Defang, please see our [Managed LLMs documentation](https://docs.defang.io/docs/concepts/managed-llms/managed-language-models).
23
23
24
24
### Defang OpenAI Access Gateway
25
25
26
-
In the `compose.yaml` file, the `llm` service is used to route requests to the LLM API model. This is known as the [Defang OpenAI Access Gateway](https://docs.defang.io/docs/concepts/managed-llms/openai-access-gateway).
26
+
In the `compose.yaml` file, the `llm` service is used to route requests to the LLM API model. This is known as the [Defang OpenAI Access Gateway](https://docs.defang.io/docs/concepts/managed-llms/openai-access-gateway).
27
27
28
28
The `x-defang-llm` property on the `llm` service must be set to `true` in order to use the OpenAI Access Gateway when deploying with Defang.
29
29
@@ -38,7 +38,7 @@ The `x-defang-llm` property on the `llm` service must be set to `true` in order
38
38
To run the application locally, you can use the following command:
0 commit comments