PayPerQ
· 2d
I think it has to do with your config. Did you have it working with other models or just this model?
Sorry for the troubles. It is one of our more popular guides so I think it works for most.
this is happening randomly. usually the model works but eventually throws the error. does not seem to happen with i.e. qwen coder and kimi. happens a lot with sonnet 4.6, rarely wuth sonnet 4.5.
my config:
```
"ppqai": {
"npm": "@ai-sdk/openai-compatible",
"name": "ppq.ai",
"options": {
"baseURL": "https://api.ppq.ai/v1"
},
"models": {
"openai/gpt-5.1-codex": {
"name": "GPT-5.1 Codex",
"options": {
"capabilities": {
"input": ["text", "image"],
"output": ["text"]
}
}
},
"anthropic/claude-sonnet-4.5": {
"name": "Claude Sonnet 4.5",
"options": {
"capabilities": {
"input": ["text", "image"],
"output": ["text"]
}
}
},
"anthropic/claude-sonnet-4.6": {
"name": "Claude Sonnet 4.6",
"options": {
"capabilities": {
"input": ["text", "image"],
"output": ["text"]
}
}
},
"anthropic/claude-opus-4.6": {
"name": "Claude Opus 4.6",
"options": {
"capabilities": {
"input": ["text", "image"],
"output": ["text"]
}
}
},
"qwen/qwen3-coder-plus": {
"name": "Qwen 3 Coder Plus",
"options": {
"capabilities": {
"input": ["text", "image"],
"output": ["text"]
}
}
},
"kwaipilot/kat-coder-pro": {
"name": "KAT-Coder-Pro V1",
"options": {
"capabilities": {
"input": ["text", "image"],
"output": ["text"]
}
}
},
"mistralai/devstral-2512": {
"name": "Devstral 2 2512",
"options": {
"capabilities": {
"input": ["text", "image"],
"output": ["text"]
}
}
},
"moonshotai/kimi-k2-thinking": {
"name": "Kimi K2 Thinking",
"options": {
"capabilities": {
"input": ["text", "image"],
"output": ["text"]
}
}
},
"z-ai/glm-4.7": {
"name": "GLM 4.7",
"options": {
"capabilities": {
"input": ["text", "image"],
"output": ["text"]
}
}
},
"stepfun-ai/step3": {
"name": "Step 3",
"options": {
"capabilities": {
"input": ["text", "image"],
"output": ["text"]
}
}
},
"gemini-3-pro-preview": {
"name": "Gemini 3 Pro Preview",
"options": {
"capabilities": {
"input": ["text", "image"],
"output": ["text"]
}
}
}
}
}
```
using sonnet 4.6 via copilot api this does not happen at all.
my config:
```
"ppqai": {
"npm": "@ai-sdk/openai-compatible",
"name": "ppq.ai",
"options": {
"baseURL": "https://api.ppq.ai/v1"
},
"models": {
"openai/gpt-5.1-codex": {
"name": "GPT-5.1 Codex",
"options": {
"capabilities": {
"input": ["text", "image"],
"output": ["text"]
}
}
},
"anthropic/claude-sonnet-4.5": {
"name": "Claude Sonnet 4.5",
"options": {
"capabilities": {
"input": ["text", "image"],
"output": ["text"]
}
}
},
"anthropic/claude-sonnet-4.6": {
"name": "Claude Sonnet 4.6",
"options": {
"capabilities": {
"input": ["text", "image"],
"output": ["text"]
}
}
},
"anthropic/claude-opus-4.6": {
"name": "Claude Opus 4.6",
"options": {
"capabilities": {
"input": ["text", "image"],
"output": ["text"]
}
}
},
"qwen/qwen3-coder-plus": {
"name": "Qwen 3 Coder Plus",
"options": {
"capabilities": {
"input": ["text", "image"],
"output": ["text"]
}
}
},
"kwaipilot/kat-coder-pro": {
"name": "KAT-Coder-Pro V1",
"options": {
"capabilities": {
"input": ["text", "image"],
"output": ["text"]
}
}
},
"mistralai/devstral-2512": {
"name": "Devstral 2 2512",
"options": {
"capabilities": {
"input": ["text", "image"],
"output": ["text"]
}
}
},
"moonshotai/kimi-k2-thinking": {
"name": "Kimi K2 Thinking",
"options": {
"capabilities": {
"input": ["text", "image"],
"output": ["text"]
}
}
},
"z-ai/glm-4.7": {
"name": "GLM 4.7",
"options": {
"capabilities": {
"input": ["text", "image"],
"output": ["text"]
}
}
},
"stepfun-ai/step3": {
"name": "Step 3",
"options": {
"capabilities": {
"input": ["text", "image"],
"output": ["text"]
}
}
},
"gemini-3-pro-preview": {
"name": "Gemini 3 Pro Preview",
"options": {
"capabilities": {
"input": ["text", "image"],
"output": ["text"]
}
}
}
}
}
```
using sonnet 4.6 via copilot api this does not happen at all.