Skip to content

Commit 7441e24

Browse files
committed
Revert "feat: implement ExtraBody support for ChatCompletionRequest"
This reverts commit 6cd1289.
1 parent 6cd1289 commit 7441e24

File tree

3 files changed

+0
-468
lines changed

3 files changed

+0
-468
lines changed

chat.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,6 @@ type ChatCompletionRequest struct {
280280
// Such as think mode for qwen3. "chat_template_kwargs": {"enable_thinking": false}
281281
// https://qwen.readthedocs.io/en/latest/deployment/vllm.html#thinking-non-thinking-modes
282282
ChatTemplateKwargs map[string]any `json:"chat_template_kwargs,omitempty"`
283-
// Add additional JSON properties to the request
284-
ExtraBody map[string]any `json:"extra_body,omitempty"`
285283
}
286284

287285
type StreamOptions struct {
@@ -427,7 +425,6 @@ func (c *Client) CreateChatCompletion(
427425
http.MethodPost,
428426
c.fullURL(urlSuffix, withModel(request.Model)),
429427
withBody(request),
430-
withExtraBody(request.ExtraBody),
431428
)
432429
if err != nil {
433430
return

0 commit comments

Comments
 (0)