adamant-sandwich-74490
09/14/2025, 1:03 PMservice_tier param for the class initialisation in https://github.com/livekit/agents/blob/062b001baff46a3831941dd82ddd9c2e267c67d1/li[…]t-plugins/livekit-plugins-groq/livekit/plugins/groq/services.py (v1.2.8)...
..but with livekit-plugins-groq==1.2.8 installed (livekit/plugins/groq/version.py shows __version__ = "1.2.8"), services.py contains this (no service_tier):
class LLM(OpenAILLM):
def __init__(
self,
*,
model: str | LLMModels = "llama-3.3-70b-versatile",
api_key: NotGivenOr[str] = NOT_GIVEN,
user: NotGivenOr[str] = NOT_GIVEN,
safety_identifier: NotGivenOr[str] = NOT_GIVEN,
prompt_cache_key: NotGivenOr[str] = NOT_GIVEN,
temperature: NotGivenOr[float] = NOT_GIVEN,
top_p: NotGivenOr[float] = NOT_GIVEN,
parallel_tool_calls: NotGivenOr[bool] = NOT_GIVEN,
tool_choice: NotGivenOr[ToolChoice] = NOT_GIVEN,
base_url: NotGivenOr[str] = "https://api.groq.com/openai/v1",
reasoning_effort: NotGivenOr[ReasoningEffort] = NOT_GIVEN,
client: openai.AsyncClient | None = None,
):
...so it expectedly throws a TypeError:
return groq.LLM(**params, service_tier="flex")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: LLM.__init__() got an unexpected keyword argument 'service_tier'
What am I missing here? Thanks!jolly-air-155
09/15/2025, 9:22 AMpip list | grep livekit, you probably need to upgrade the livekit-agents and the openai plugin to the same version.adamant-sandwich-74490
09/15/2025, 9:23 AM╰─❯ pip list | grep livekit
livekit 1.0.13
livekit-agents 1.2.8
livekit-api 1.0.5
livekit-blingfire 1.0.0
livekit-plugins-anthropic 1.2.8
livekit-plugins-cartesia 1.2.8
livekit-plugins-deepgram 1.2.8
livekit-plugins-elevenlabs 1.2.8
livekit-plugins-groq 1.2.8
livekit-plugins-noise-cancellation 0.2.5
livekit-plugins-openai 1.2.8
livekit-plugins-silero 1.2.8
livekit-plugins-turn-detector 1.2.8
livekit-protocol 1.0.6adamant-sandwich-74490
09/15/2025, 9:23 AMjolly-air-155
09/15/2025, 9:24 AMadamant-sandwich-74490
09/15/2025, 9:37 AMadamant-sandwich-74490
09/15/2025, 10:39 AMPython 3.11.11 (main, Feb 12 2025, 15:06:01) [Clang 19.1.6 ] on darwin)adamant-sandwich-74490
09/15/2025, 10:42 AMopenai LLM class does inclue this param (screenshot below), though, but not `groq`'s.jolly-air-155
09/15/2025, 11:20 AMservice_tier for groq plugin was just merged last week, it will be included in next releasejolly-air-155
09/15/2025, 11:20 AMadamant-sandwich-74490
09/15/2025, 11:21 AMjolly-air-155
09/16/2025, 3:17 AM