Skip to content

Commit e502983

Browse files
committed
fix: resolve comments and spelling
1 parent caa407f commit e502983

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
@@ -23,7 +23,7 @@ def get_model_params(kwargs: Dict[str, Any]) -> Dict[str, Any]:
2323
"stream",
2424
]:
2525
if param in kwargs:
26-
model_params[param] = kwargs.get(param)
26+
model_params[param] = kwargs[param]
2727
return model_params
2828

2929

@@ -68,7 +68,7 @@ def call_llm_and_track_usage(
6868
response = call_method(**kwargs)
6969
except Exception as exc:
7070
error = exc
71-
http_status = getattr(exc, "status_code", 0) # default to 0 becuase its liekly an SDK error
71+
http_status = getattr(exc, "status_code", 0) # default to 0 becuase its likely an SDK error
7272
finally:
7373
end_time = time.time()
7474
latency = end_time - start_time

0 commit comments

Comments
 (0)