agents icon indicating copy to clipboard operation
agents copied to clipboard

fix(groq-llm): temperature type

Open civilcoder55 opened this issue 8 months ago • 2 comments

This fix will resolve TypeError: Object of type NotGiven is not JSON serializable

2025-04-26_19-00

maybe related to https://github.com/livekit/agents/pull/1730 @jayeshp19 @theomonnom

civilcoder55 avatar Apr 26 '25 16:04 civilcoder55

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Apr 26 '25 16:04 CLAassistant

✅ Changeset File Detected

The following changeset entries were found:

  • patch - livekit-plugins-groq

Change description: fix(groq-llm): temperature type (#2137)

github-actions[bot] avatar Apr 26 '25 16:04 github-actions[bot]

@civilcoder55 which version did you see this error with? I'm not able to repro.

we have a check that would not pass NOT_GIVEN into the model:

        if is_given(self._opts.temperature):
            extra["temperature"] = self._opts.temperature

davidzhao avatar May 31 '25 07:05 davidzhao