INNER CODE UNIT · TypeScript

resetLocalApiKey

Simprint/simprint · plugins/pages/api-ai/src/api/index.ts:41

export async function resetLocalApiKey(): Promise<ResetLocalApiKeyResponse> {
  const result = await post<ResetLocalApiKeyResponse>(API_ENDPOINTS.RESET_API_KEY, {});
  if (!isSuccess(result) || !result.data) {
    throw new Error(result.message || '重置密钥失败');
  }

  return result.data;
}

export async function startLocalApiRuntime(): Promise<void> {
  await invoke('start_local_api_runtime');
}

export async function reloadLocalApiRuntime(): Promise<void> {
  await invoke('reload_local_api_runtime');
}

export async function stopLocalApiRuntime(): Promise<void> {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…