e78a1e7d4e
Signed-off-by: Adrian Cole <adrian@tetrate.io> Co-authored-by: Adrian Cole <adrian@tetrate.io>
17 lines
459 B
TypeScript
17 lines
459 B
TypeScript
import { configureProviderOauth } from '../api';
|
|
|
|
export async function startChatGptCodexSetup(): Promise<{ success: boolean; message: string }> {
|
|
try {
|
|
await configureProviderOauth({
|
|
path: { name: 'chatgpt_codex' },
|
|
throwOnError: true,
|
|
});
|
|
return { success: true, message: 'ChatGPT Codex setup completed' };
|
|
} catch (e) {
|
|
return {
|
|
success: false,
|
|
message: `Failed to start ChatGPT Codex setup: ${e}`,
|
|
};
|
|
}
|
|
}
|