Files
tkmind_go/ui/desktop/src/utils/openRouterSetup.ts
T
2025-09-09 13:43:46 -04:00

18 lines
434 B
TypeScript

import { startOpenrouterSetup } from '../api';
export interface OpenRouterSetupStatus {
isRunning: boolean;
error: string | null;
}
export async function startOpenRouterSetup(): Promise<{ success: boolean; message: string }> {
try {
return (await startOpenrouterSetup({ throwOnError: true })).data;
} catch (e) {
return {
success: false,
message: `Failed to start Openrouter setup ['${e}]`,
};
}
}