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
{{ message }}
Repository navigation
Commit 1d599d9
Browse filesBrowse the repository at this point in the historyBrowse files
schema output, stream usage and audio output. The default `supports()` follows the
112
+
declared protocols. The engine validates decoded protocol, operation and effective
113
+
stream settings before invoking any provider, including custom implementations.
114
+
Providers also validate the final converted payload, including provider defaults. Unsupported
115
+
features or operations fail as request errors before HTTP execution. Generic capabilities
116
+
describe the service, not a guarantee for every model it hosts; configure a narrower
117
+
profile for a model or deployment with additional restrictions. Unknown fields that
118
+
need no transformation remain in the payload.
119
+
120
+
Built-in profiles enumerate their supported operations and features explicitly. Adding
121
+
an enum value does not enable it for existing profiles; review and opt in each profile.
122
+
123
+
OpenAI now emits one Chat token-limit field, `max_completion_tokens`. When both token
124
+
fields are supplied, the modern field takes precedence; gateway `maxTokens` overrides
125
+
it. This follows the [OpenAI Chat API](https://developers.openai.com/api/reference/resources/chat/subresources/completions/methods/create).
126
+
Generic compatible profiles preserve the client's field choice unless configured
127
+
otherwise. `withMaxTokensField("max_tokens")` selects a legacy upstream dialect through
128
+
Connect's provider adaptation phase, after Responses-to-Chat conversion. DeepSeek uses
129
+
its existing Connect profile, including token and thinking mappings. Its Chat capability
130
+
profile accepts function tools and JSON mode and rejects JSON-schema output, custom
131
+
tools and audio output, following the [DeepSeek Chat API](https://api-docs.deepseek.com/api/create-chat-completion/).
132
+
133
+
Provider paths may be relative to a base URL, or the base URL may already include the
134
+
complete configured operation path. `/v1` is not appended twice. DeepSeek uses
135
+
`/chat/completions`, including when the configured base URL ends in `/v1` or `/beta`.
136
+
Base URLs retain the existing HTTP(S), no-userinfo/query/fragment restriction; profile
137
+
query parameters are encoded separately. Header credentials support arbitrary header
138
+
names and prefixes (including Bearer); query credentials and unauthenticated local
139
+
services are also available. Generated content-type, accept and credential headers
Copy file name to clipboardExpand all lines: shenyu-plugin/shenyu-plugin-ai/shenyu-plugin-ai-proxy/src/main/java/org/apache/shenyu/plugin/ai/proxy/enhanced/model/ShenyuAiRequest.java
+27Lines changed: 27 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,8 @@ public final class ShenyuAiRequest {
Copy file name to clipboardExpand all lines: shenyu-plugin/shenyu-plugin-ai/shenyu-plugin-ai-proxy/src/main/java/org/apache/shenyu/plugin/ai/proxy/enhanced/protocol/OpenAiChat.java
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,7 @@ public ShenyuAiRequest decodeRequest(final String rawBody, final ObjectNode payl
Copy file name to clipboardExpand all lines: shenyu-plugin/shenyu-plugin-ai/shenyu-plugin-ai-proxy/src/main/java/org/apache/shenyu/plugin/ai/proxy/enhanced/protocol/OpenAiResponses.java
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -65,6 +65,7 @@ public ShenyuAiRequest decodeRequest(final String rawBody, final ObjectNode payl
Copy file name to clipboardExpand all lines: shenyu-plugin/shenyu-plugin-ai/shenyu-plugin-ai-proxy/src/main/java/org/apache/shenyu/plugin/ai/proxy/enhanced/provider/AiProxyProvider.java
0 commit comments