From 1a335667cb9c652c98de4c33d38e5ae75c5c965f Mon Sep 17 00:00:00 2001 From: Will Velida Date: Fri, 6 Jun 2025 04:14:14 +0000 Subject: [PATCH] Updating OpenAI conversation component to include custom endpoint support Signed-off-by: Will Velida --- .../components-reference/supported-conversation/openai.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/daprdocs/content/en/reference/components-reference/supported-conversation/openai.md b/daprdocs/content/en/reference/components-reference/supported-conversation/openai.md index 7148685b1..ce8dc9412 100644 --- a/daprdocs/content/en/reference/components-reference/supported-conversation/openai.md +++ b/daprdocs/content/en/reference/components-reference/supported-conversation/openai.md @@ -21,6 +21,8 @@ spec: value: mykey - name: model value: gpt-4-turbo + - name: endpoint + value: 'https://api.openai.com/v1' - name: cacheTTL value: 10m ``` @@ -35,6 +37,7 @@ The above example uses secrets as plain strings. It is recommended to use a secr |--------------------|:--------:|---------|---------| | `key` | Y | API key for OpenAI. | `mykey` | | `model` | N | The OpenAI LLM to use. Defaults to `gpt-4-turbo`. | `gpt-4-turbo` | +| `endpoint` | N | Custom API endpoint URL for OpenAI API-compatible services. If not specified, the default OpenAI API endpoint will be used. | `https://api.openai.com/v1` | | `cacheTTL` | N | A time-to-live value for a prompt cache to expire. Uses Golang duration format. | `10m` | ## Related links