Updating OpenAI conversation component to include custom endpoint support

Signed-off-by: Will Velida <willvelida@hotmail.co.uk>
This commit is contained in:
Will Velida 2025-06-06 04:14:14 +00:00
parent 9faf5aedae
commit 1a335667cb
1 changed files with 3 additions and 0 deletions

View File

@ -21,6 +21,8 @@ spec:
value: mykey value: mykey
- name: model - name: model
value: gpt-4-turbo value: gpt-4-turbo
- name: endpoint
value: 'https://api.openai.com/v1'
- name: cacheTTL - name: cacheTTL
value: 10m 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` | | `key` | Y | API key for OpenAI. | `mykey` |
| `model` | N | The OpenAI LLM to use. Defaults to `gpt-4-turbo`. | `gpt-4-turbo` | | `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` | | `cacheTTL` | N | A time-to-live value for a prompt cache to expire. Uses Golang duration format. | `10m` |
## Related links ## Related links