Skip to content

Commit d59453c

Browse files
authored
fix(accumulator)!: update casing (#401)
1 parent bececf2 commit d59453c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

streamaccumulator.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type ChatCompletionAccumulator struct {
1313
type FinishedChatCompletionToolCall struct {
1414
ChatCompletionMessageToolCallFunction
1515
Index int
16-
Id string
16+
ID string
1717
}
1818

1919
type chatCompletionResponseState struct {
@@ -86,7 +86,7 @@ func (acc *ChatCompletionAccumulator) JustFinishedToolCall() (toolcall FinishedC
8686
f := acc.Choices[0].Message.ToolCalls[acc.justFinished.index].Function
8787
id := acc.Choices[0].Message.ToolCalls[acc.justFinished.index].ID
8888
return FinishedChatCompletionToolCall{
89-
Id: id,
89+
ID: id,
9090
Index: acc.justFinished.index,
9191
ChatCompletionMessageToolCallFunction: ChatCompletionMessageToolCallFunction{
9292
Name: f.Name,

0 commit comments

Comments
 (0)