polite-furniture-24847
09/03/2025, 2:22 AMopenai.LLM.with_deepseek however i get this error when passing the model deepseek-v3-1-250821
{"message": "failed to generate LLM completion, retrying in 2.0s\nTraceback (most recent call last):\n File \"/usr/local/lib/python3.10/site-packages/livekit/agents/llm/llm.py\", line 177, in _main_task\n return await self._run()\n File \"/usr/local/lib/python3.10/site-packages/livekit/plugins/openai/llm.py\", line 822, in _run\n raise APIStatusError(\nlivekit.agents._exceptions.APIStatusError: Error code: 400 - {'error': {'code': 'InvalidParameter', 'message': 'not support strict mode temporarily. Request id: <MASKED>', 'param': '', 'type': 'BadRequest'}} (status_code=400, request_id=<MASKED>, body={'code': 'InvalidParameter', 'message': 'not support strict mode temporarily. Request id: <MASKED>', 'param': '', 'type': 'BadRequest'}, retryable=True)", "level": "WARNING", "name": "livekit.agents", "llm": "livekit.plugins.openai.llm.LLM", "attempt": 3, "pid": 38, "job_id": "<MASKED>", "timestamp": "2025-09-01T02:30:27.900566+00:00"}
not sure if this is on byteplus' end or i may have missed something.. appreciate any guidancetall-airline-16756
09/03/2025, 2:22 AMtall-airline-16756
09/03/2025, 2:22 AMopenai.LLM.with_deepseek function?
• Have you tried other models with the same settings? Did those work okay?
Knowing these details will really help us figure out if the issue is with the model, your configuration, or BytePlus' service. Thanks for sharing!polite-furniture-24847
09/03/2025, 2:23 AMllm = openai.LLM.with_deepseek(
model="deepseek-v3-1-250821",
temperature=0.1,
api_key=os.getenv("ARK_API_KEY"),
base_url="https://ark.ap-southeast.bytepluses.com/api/v3",
),tall-airline-16756
09/03/2025, 2:24 AMdeepseek-v3-1-250821 isn’t supported by the DeepSeek integration in LiveKit right now. The good news is, you can use deepseek-chat (DeepSeek-V3) or deepseek-coder as valid options for the model parameter when working with openai.LLM.with_deepseek.
Also, a little note—strict mode can’t be configured through openai.LLM.with_deepseek in the current setup. If you were aiming to use deepseek-chat, that’s totally supported, but just so you know, strict mode settings aren’t available via the API at the moment.
Give one of the supported models a try, and if you run into any other hiccups, I’m here to help!
Sources: DeepSeek LLM integration guide | LiveKit Docs | livekit-plugins/livekit-plugins-openai/livekit/plugins/openai/models.py | plugins/openai/src/models.ts