mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-06-06 19:35:44 +02:00
Merge 61af7f3c58 into 51f2ad6e8a
This commit is contained in:
commit
153519f01d
25 changed files with 5144 additions and 18 deletions
|
|
@ -275,6 +275,39 @@ const ipcSchemas = {
|
|||
})),
|
||||
}),
|
||||
},
|
||||
'github-copilot:authenticate': {
|
||||
req: z.null(),
|
||||
res: z.union([
|
||||
z.object({
|
||||
success: z.literal(true),
|
||||
userCode: z.string(),
|
||||
verificationUri: z.string(),
|
||||
expiresIn: z.number(),
|
||||
}),
|
||||
z.object({
|
||||
success: z.literal(false),
|
||||
error: z.string(),
|
||||
}),
|
||||
]),
|
||||
},
|
||||
'github-copilot:isAuthenticated': {
|
||||
req: z.null(),
|
||||
res: z.object({
|
||||
authenticated: z.boolean(),
|
||||
}),
|
||||
},
|
||||
'github-copilot:disconnect': {
|
||||
req: z.null(),
|
||||
res: z.union([
|
||||
z.object({
|
||||
success: z.literal(true),
|
||||
}),
|
||||
z.object({
|
||||
success: z.literal(false),
|
||||
error: z.string(),
|
||||
}),
|
||||
]),
|
||||
},
|
||||
'account:getRowboat': {
|
||||
req: z.null(),
|
||||
res: z.object({
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { z } from "zod";
|
||||
|
||||
export const LlmProvider = z.object({
|
||||
flavor: z.enum(["openai", "anthropic", "google", "openrouter", "aigateway", "ollama", "openai-compatible"]),
|
||||
flavor: z.enum(["openai", "anthropic", "google", "openrouter", "aigateway", "ollama", "openai-compatible", "github-copilot"]),
|
||||
apiKey: z.string().optional(),
|
||||
baseURL: z.string().optional(),
|
||||
headers: z.record(z.string(), z.string()).optional(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue