Skip to content

Commit e71f386

Browse files
committed
fix(llmo): fix types error
1 parent 3eedd07 commit e71f386

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

posthog/ai/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def format_response_anthropic(response):
147147
tool_calls.append(tool_call)
148148

149149
if content_text or tool_calls:
150-
message = {
150+
message: Dict[str, Any] = {
151151
"role": "assistant",
152152
"content": content_text if content_text else None,
153153
}
@@ -285,7 +285,7 @@ def format_response_gemini(response):
285285
tool_calls.append(tool_call)
286286

287287
if content_text or tool_calls:
288-
message = {
288+
message: Dict[str, Any] = {
289289
"role": "assistant",
290290
"content": content_text if content_text else None,
291291
}

0 commit comments

Comments
 (0)