Skip to content

Error: chat template not supported #198

Description

@ParthKarth

Am using runpod serverless initially with Deepseek R1 from huggingface, then switched to Llama4-scout for testing but I got this error. No issues on the huggingface side, the model is exactly the same as it was.

Output:
{ "delayTime": 48454, "error": "{'object': 'error', 'message': 'Chat template does not exist for this model, you must provide a single string input instead of a list of messages', 'type': 'BadRequestError', 'param': None, 'code': 400}", "executionTime": 254, "id": "2bee8688-4f7e-4d8d-b198-3ad3054f34d8-u2", "status": "FAILED", "workerId": "9sxpstx8jawche" }

Switched back to deepseek-r1 and still getting the same message.
Nothing was changed but there are processes dependent on this.

Here is the input:

{"input": {
"messages": [
{"role": "system", "content": "You are a physics expert."},
{"role": "user", "content": "What is gravity?"}
]
}}

The model supports chat tempate.

This is from the HF model sample request. The same request is not working if called through runpod:
curl https://router.huggingface.co/v1/chat/completions
-H "Authorization: Bearer $HF_TOKEN"
-H 'Content-Type: application/json'
-d '{
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
],
"model": "unsloth/DeepSeek-R1-Distill-Llama-8B:featherless-ai",
"stream": false
}'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions