Feature : RTK compress
This commit is contained in:
parent
e1a219dba6
commit
8de9aae90c
26 changed files with 1612 additions and 0 deletions
|
|
@ -197,6 +197,21 @@ export async function POST(request) {
|
|||
break;
|
||||
}
|
||||
|
||||
case "opencode-go": {
|
||||
const res = await fetch("https://opencode.ai/zen/go/v1/chat/completions", {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json", "Authorization": `Bearer ${apiKey}` },
|
||||
body: JSON.stringify({
|
||||
model: getDefaultModel("opencode-go"),
|
||||
messages: [{ role: "user", content: "ping" }],
|
||||
max_tokens: 1,
|
||||
stream: false,
|
||||
}),
|
||||
});
|
||||
isValid = res.status !== 401 && res.status !== 403;
|
||||
break;
|
||||
}
|
||||
|
||||
case "deepgram": {
|
||||
const res = await fetch("https://api.deepgram.com/v1/projects", {
|
||||
headers: { "Authorization": `Token ${apiKey}` },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue