import { connectionScoped, profileScoped } from '@/api/client' import type { CustomEndpointUpdate } from '@/types/hermes' export const AITURK_API_BASE_URL = 'https://ai.turkservis.online/v1' export const AITURK_ACCOUNT_URL = 'https://turkservis.online/panel' /** Where the main process should save the provider after a one-click sign-in: * the same (connection, profile) the renderer's saveCustomEndpoint targets. */ export function aiturkLoginScope(): { connectionId?: string; profile?: string } { return { ...connectionScoped(), ...profileScoped() } } export function aiturkEndpoint(apiKey: string, model = '', models?: string[]): CustomEndpointUpdate { return { id: 'turkservis', name: 'TurkServis ยท AITURK', base_url: AITURK_API_BASE_URL, api_key: apiKey.trim(), model, discover_models: true, make_default: true, ...(models?.length ? { models } : {}) } }