Skip to content

Commit a9237c1

Browse files
committed
fix(groq-llm): temperature type
this fix will resolve `TypeError: Object of type NotGiven is not JSON serializable`
1 parent 6e5d035 commit a9237c1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"livekit-plugins-groq": patch
3+
---
4+
5+
fix(groq-llm): temperature type (#2137)

livekit-plugins/livekit-plugins-groq/livekit/plugins/groq/services.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def __init__(
2222
model: str | LLMModels = "llama-3.3-70b-versatile",
2323
api_key: NotGivenOr[str] = NOT_GIVEN,
2424
user: NotGivenOr[str] = NOT_GIVEN,
25-
temperature: NotGivenOr[float] = NOT_GIVEN,
25+
temperature: float | None = None,
2626
parallel_tool_calls: NotGivenOr[bool] = NOT_GIVEN,
2727
tool_choice: NotGivenOr[ToolChoice] = NOT_GIVEN,
2828
base_url: str | None = "https://api.groq.com/openai/v1",

0 commit comments

Comments
 (0)