Skip to content

Commit 68f1be7

Browse files
Updating OpenAI conversation component to include custom endpoint support (#4678)
* Updating OpenAI Conversation component to include custom endpoint support Signed-off-by: Will Velida <[email protected]> * Update daprdocs/content/en/reference/components-reference/supported-conversation/openai.md Signed-off-by: Mark Fussell <[email protected]> --------- Signed-off-by: Will Velida <[email protected]> Signed-off-by: Mark Fussell <[email protected]> Co-authored-by: Mark Fussell <[email protected]>
1 parent 99777f7 commit 68f1be7

File tree

1 file changed

+3
-0
lines changed
  • daprdocs/content/en/reference/components-reference/supported-conversation

1 file changed

+3
-0
lines changed

daprdocs/content/en/reference/components-reference/supported-conversation/openai.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ spec:
2121
value: mykey
2222
- name: model
2323
value: gpt-4-turbo
24+
- name: endpoint
25+
value: 'https://api.openai.com/v1'
2426
- name: cacheTTL
2527
value: 10m
2628
```
@@ -35,6 +37,7 @@ The above example uses secrets as plain strings. It is recommended to use a secr
3537
|--------------------|:--------:|---------|---------|
3638
| `key` | Y | API key for OpenAI. | `mykey` |
3739
| `model` | N | The OpenAI LLM to use. Defaults to `gpt-4-turbo`. | `gpt-4-turbo` |
40+
| `endpoint` | N | Custom API endpoint URL for OpenAI API-compatible services. If not specified, the default OpenAI API endpoint is used. | `https://api.openai.com/v1` |
3841
| `cacheTTL` | N | A time-to-live value for a prompt cache to expire. Uses Golang duration format. | `10m` |
3942

4043
## Related links

0 commit comments

Comments
 (0)