Skip to content

Commit 861ed52

Browse files
authored
fix: add max_tokens to default payload (#196)
1 parent e6a01e9 commit 861ed52

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/gp/dispatcher.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ D.prepare_payload = function(messages, model, provider)
169169
model = model.model,
170170
stream = true,
171171
messages = messages,
172+
max_tokens = model.max_tokens or 4096,
172173
temperature = math.max(0, math.min(2, model.temperature or 1)),
173174
top_p = math.max(0, math.min(1, model.top_p or 1)),
174175
}

0 commit comments

Comments
 (0)