Hi guys. No idea why I am always getting this error any time I am trying to use any other model after being added. Any time I ve this.
$headers = @{
“Content-Type” = “application/json”
“Authorization” = “Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxx”
}
$body = @{
“messages” = @(
@{
“role” = “system”
“content” = “You are a test assistant.”
},
@{
“role” = “user”
“content” = “Testing. Just say hi and nothing else.”
}
)
“model” = “gpt-4o-mini”
} | ConvertTo-Json
Invoke-WebRequest -Uri “https://api.deepseek.com/beta/chat/completions” -Method Post -Headers $headers -Body $body
In this case I am using deepseek, but it happen as well when I am trying to use qwen2.5-coder:7b running a server ollama on local.