-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
Runtime environment
Ubuntu 22.04.2 LTS
Exception
[2025-12-26 07:33:53 +0000] [2990190] [INFO] 127.0.0.1:40094 POST /api/v1/provider/models/llm/_/test 1.1 500 177 48426 Traceback (most recent call last): File "/home/owen/.cache/uv/archive-v0/Rz93uE5q1NCgU7kKaNHep/lib/python3.12/site-packages/langbot/pkg/api/http/controller/group.py", line 152, in handler_error return await f(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/owen/.cache/uv/archive-v0/Rz93uE5q1NCgU7kKaNHep/lib/python3.12/site-packages/langbot/pkg/api/http/controller/groups/provider/models.py", line 44, in _ await self.ap.llm_model_service.test_llm_model(model_uuid, json_data) File "/home/owen/.cache/uv/archive-v0/Rz93uE5q1NCgU7kKaNHep/lib/python3.12/site-packages/langbot/pkg/api/http/service/model.py", line 114, in test_llm_model await runtime_llm_model.requester.invoke_llm( File "/home/owen/.cache/uv/archive-v0/Rz93uE5q1NCgU7kKaNHep/lib/python3.12/site-packages/langbot/pkg/provider/modelmgr/requesters/anthropicmsgs.py", line 149, in invoke_llm resp = await self.client.messages.create(**args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/owen/.cache/uv/archive-v0/Rz93uE5q1NCgU7kKaNHep/lib/python3.12/site-packages/anthropic/_utils/_utils.py", line 281, in wrapper raise TypeError(msg) TypeError: Missing required arguments; Expected either ('max_tokens', 'messages' and 'model') or ('max_tokens', 'messages', 'model' and 'stream') arguments to be given [2025-12-26 07:34:05 +0000] [2990190] [INFO] 127.0.0.1:49796 POST /api/v1/provider/models/llm/_/test 1.1 500 177 45768
Reproduction steps
No response
Enabled plugins
No response
