mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-11 10:57:07 +00:00
feat: wire paseo agent provider catalog
This commit is contained in:
@@ -12,7 +12,7 @@ type PaseoAgentDaemonClient = Pick<
|
||||
| "connect"
|
||||
| "removePaseoAgentProvider"
|
||||
| "setPaseoAgentProvider"
|
||||
| "storePaseoAgentChatGptCredential"
|
||||
| "storePaseoAgentOAuthCredential"
|
||||
>;
|
||||
|
||||
interface OpenRouterProviderInput {
|
||||
@@ -82,8 +82,8 @@ export async function seedChatGptProvider(providerName: string): Promise<void> {
|
||||
models: [{ id: "gpt-5.3-codex", reasoning: true }],
|
||||
},
|
||||
});
|
||||
await client.storePaseoAgentChatGptCredential({
|
||||
providerName,
|
||||
await client.storePaseoAgentOAuthCredential({
|
||||
name: providerName,
|
||||
credential: {
|
||||
type: "oauth",
|
||||
access: "fake-access-token",
|
||||
|
||||
@@ -2,6 +2,9 @@ import type { RedactedPaseoAgentProviderConfig } from "@getpaseo/protocol/messag
|
||||
import type { PaseoAgentSetProviderInput } from "@/hooks/use-paseo-agent-providers";
|
||||
|
||||
export function paseoAgentAuthLabel(auth: RedactedPaseoAgentProviderConfig["auth"]): string {
|
||||
if (!auth) {
|
||||
return "Auth state unavailable";
|
||||
}
|
||||
if (auth.kind === "oauth") {
|
||||
return auth.configured ? "ChatGPT login stored" : "Login required";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user