(t *testing.T)
| 75 | } |
| 76 | |
| 77 | func 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 | |
| 102 | func TestBuildChatOptionsSuppressThink(t *testing.T) { |
| 103 | flags := &Flags{ |
nothing calls this directly
no test coverage detected