(input, output int64)
| 168 | } |
| 169 | |
| 170 | func (b *streamBuilder) AddStopWithUsage(input, output int64) *streamBuilder { |
| 171 | b.responses = append(b.responses, chat.MessageStreamResponse{ |
| 172 | Choices: []chat.MessageStreamChoice{{ |
| 173 | Index: 0, |
| 174 | FinishReason: chat.FinishReasonStop, |
| 175 | }}, |
| 176 | Usage: &chat.Usage{InputTokens: input, OutputTokens: output}, |
| 177 | }) |
| 178 | return b |
| 179 | } |
| 180 | |
| 181 | func (b *streamBuilder) AddToolCallStopWithUsage(input, output int64) *streamBuilder { |
| 182 | b.responses = append(b.responses, chat.MessageStreamResponse{ |
no outgoing calls
no test coverage detected