After updating: Network timeout at: https://api.perplexity.ai/chat/completions

I have updated my code for the new model:

{
  "model": "sonar",
  "messages": [
    {
      "role": "system",
      "content": "Be precise and concise."
    },
    {
      "role": "user",
      "content": "Private Prompt"
    }
  ]
}

This was my old code:

{
  "model": "llama-3.1-sonar-small-128k-online",
  "messages": [
    {
      "role": "system",
      "content": "Be precise and concise."
    },
    {
      "role": "user",
      "content": "Private Prompt."
    }
  ]
}

As you can see, I have only adapted the model name. Everything worked before, but now I only get a network timeout at: https://api.perplexity.ai/chat/completions

same issue is with me too!!

Same issue for the sonar model with timeout
but for the sonar-pro I get “unknown”

UPDATE:
it works by removing these properties: max_tokens, temperature (tested for the sonar-pro)

I have found my solution:
I accessed Sonar via Retool and the network timeout was automatically canceled due to a timeout setting that was too low.