Skip to content

Commit a304bd6

Browse files
committed
Format and change default config
1 parent 3374d07 commit a304bd6

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

lua/parrot/config.lua

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,7 @@ local defaults = {
9999
params = { max_tokens = 32 },
100100
},
101101
params = {
102-
chat = {
103-
max_tokens = 4096,
104-
thinking = {
105-
budget_tokens = 1024,
106-
type = "enabled",
107-
},
108-
},
102+
chat = { max_tokens = 4096 },
109103
command = { max_tokens = 4096 },
110104
},
111105
},

tests/parrot/provider/anthropic_spec.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ describe("Anthropic", function()
8181
end)
8282

8383
it("should return nil for non-text_delta messages", function()
84-
local input =
85-
'{"delta":{"stop_reason":"end_turn","stop_sequence":null},"usage":{"output_tokens":8}}'
84+
local input = '{"delta":{"stop_reason":"end_turn","stop_sequence":null},"usage":{"output_tokens":8}}'
8685

8786
local result = anthropic:process_stdout(input)
8887

tests/parrot/utils_spec.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,7 @@ describe("utils", function()
205205
temperature = 0.8,
206206
topK = 10,
207207
topP = 1,
208-
generationConfig = {
209-
},
208+
generationConfig = {},
210209
}
211210

212211
local expected_new_payload = {

0 commit comments

Comments
 (0)