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
feat(ai-proxy): add defaults field for fallback model options
Separate options and defaults behavior:
- options: always override user request values
- defaults: apply only when not set in user request
This allows more flexible configuration where administrators can
enforce certain values (via options) while providing sensible
defaults for optional parameters.
Priority order: options > client request > defaults
Closes#13149
Signed-off-by: Sihyeon Jang <sihyeon.jang@navercorp.com>
Copy file name to clipboardExpand all lines: docs/en/latest/plugins/ai-proxy-multi.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,6 +75,7 @@ In addition, the Plugin also supports logging LLM request information in the acc
75
75
| instances.options.model | string | False ||| Name of the LLM model, such as `gpt-4` or `gpt-3.5`. See your LLM provider's API documentation for more available models. |
| instances.override.endpoint | string | False ||| LLM provider endpoint to replace the default endpoint with. If not configured, the Plugin uses the default OpenAI endpoint `https://api.openai.com/v1/chat/completions`. |
78
+
| instances.defaults | object | False ||| Default model configurations applied only when not set in the user request. Unlike `options` which always overrides user values, `defaults` provides fallback values. For example, you can set default `max_tokens` or `temperature` that users can override in their requests. |
78
79
| logging | object | False ||| Logging configurations. Does not affect `error.log`. |
Copy file name to clipboardExpand all lines: docs/en/latest/plugins/ai-proxy.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,6 +64,7 @@ In addition, the Plugin also supports logging LLM request information in the acc
64
64
| auth.gcp.expire_early_secs | integer | False | 60 | minimum = 0 | Seconds to expire the access token before its actual expiration time to avoid edge cases. |
65
65
| options | object | False ||| Model configurations. In addition to `model`, you can configure additional parameters and they will be forwarded to the upstream LLM service in the request body. For instance, if you are working with OpenAI, you can configure additional parameters such as `temperature`, `top_p`, and `stream`. See your LLM provider's API documentation for more available options. |
66
66
| options.model | string | False ||| Name of the LLM model, such as `gpt-4` or `gpt-3.5`. Refer to the LLM provider's API documentation for available models. |
67
+
| defaults | object | False ||| Default model configurations applied only when not set in the user request. Unlike `options` which always overrides user values, `defaults` provides fallback values. For example, you can set default `max_tokens` or `temperature` that users can override in their requests. |
0 commit comments