ashllm.comGo to chat

Tool calling

Every model here calls tools, so any of them can drive an agent.

The call

Nothing here is special. It is an OpenAI-shaped tool call, and a client that already sends one needs no change.

curl https://ashllm.com/v1/chat/completions \
  -H "Authorization: Bearer $ASHLLM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-v4.1-flash-1017-uncensored",
    "messages": [{"role": "user", "content": "What is the weather in Lisbon?"}],
    "tools": [{
      "type": "function",
      "function": {
        "name": "get_weather",
        "parameters": {
          "type": "object",
          "properties": {"city": {"type": "string"}},
          "required": ["city"]
        }
      }
    }]
  }'

The reply carries finish_reason: "tool_calls" and one call to get_weather with {"city": "Lisbon"}. Answer it with a role: "tool" message, as you would anywhere else.

Thinking comes first

Most of these models reason before they answer, and the reasoning arrives in delta.reasoning ahead of any delta.content. A client that only shows content shows nothing for a moment, then the answer.

Reasoning counts as output, so a tight max_tokens can be spent entirely on thinking and come back empty with finish_reason: "length". Leave room, or leave the cap off.