hello everyone. i have been experimenting with byt...
# ask-ai
p
hello everyone. i have been experimenting with byteplus' models including deepseek v3.1 so far some models worked by using
openai.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 guidance
t
Thanks for reaching out, Bryner. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hey there! Could you share a bit more about your setup? For example: • Are you turning on strict mode on purpose, or is it just on by default in your setup? • What parameters are you sending to the
openai.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!
p
llm = 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",
),
t
Hey there! Just a quick heads-up: the model
deepseek-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