Skip to content

Commit 33341ea

Browse files
committed
Rubocop
1 parent 2fef3eb commit 33341ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/openai/client/chat_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107

108108
message["tool_calls"].each do |tool_call|
109109
messages << {
110-
tool_call_id: tool_call.dig("id"),
110+
tool_call_id: tool_call["id"],
111111
role: "tool",
112112
name: "get_current_weather",
113113
content: "The weather is nice 🌞"
@@ -121,7 +121,7 @@
121121
}
122122
)
123123

124-
expect(second_response.dig("error")).to be_nil
124+
expect(second_response["error"]).to be_nil
125125
end
126126
end
127127
end

0 commit comments

Comments
 (0)