Skip to content

Chat template is passed #6

Description

@yannsommer

when running Multi-tool-search agent,

Error code: 400 - {'detail': 'Invalid request. Please check the parameters and try again. Details: Chat template is passed with request, but
--trust-request-chat-template is not set. Refused request with untrusted chat template.'}

Investigation:
We intercepted the actual HTTP request being sent and confirmed that NO chat_template parameter is present in the request body. The request only contains:
{
"messages": [{"role": "user", "content": "..."}],
"model": "meta-llama/Meta-Llama-3.1-8B-Instruct"
}

Environment

  • LiteLLM version: 1.80.0
  • Google ADK (Agent Development Kit)
  • Nebius API Base: https://api.studio.nebius.ai/v1
  • Models tested:
    • meta-llama/Meta-Llama-3.1-8B-Instruct
    • meta-llama/Meta-Llama-3.1-8B-Instruct-fast

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions