MCPcopy Create free account
hub / github.com/danielmiessler/Fabric / TestBuildChatOptionsDefaultSeed

Function TestBuildChatOptionsDefaultSeed

internal/cli/flags_test.go:77–100  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

75}
76
77func TestBuildChatOptionsDefaultSeed(t *testing.T) {
78 flags := &Flags{
79 Temperature: 0.8,
80 TopP: 0.9,
81 PresencePenalty: 0.1,
82 FrequencyPenalty: 0.2,
83 }
84
85 expectedOptions := &domain.ChatOptions{
86 Temperature: 0.8,
87 TopP: 0.9,
88 PresencePenalty: 0.1,
89 FrequencyPenalty: 0.2,
90 Raw: false,
91 Seed: 0,
92 Thinking: domain.ThinkingLevel(""),
93 SuppressThink: false,
94 ThinkStartTag: "<think>",
95 ThinkEndTag: "</think>",
96 }
97 options, err := flags.BuildChatOptions()
98 assert.NoError(t, err)
99 assert.Equal(t, expectedOptions, options)
100}
101
102func TestBuildChatOptionsSuppressThink(t *testing.T) {
103 flags := &Flags{

Callers

nothing calls this directly

Calls 2

BuildChatOptionsMethod · 0.95
ThinkingLevelTypeAlias · 0.92

Tested by

no test coverage detected