export async function fetchModelsList(): Promise<string[]> {
    try {
        // API呼び出しでモデル一覧を取得（仮のエンドポイント）
        const response = await openai.models.list();
        return response.data.map((model: any) => model.id);
    } catch (error) {
        console.error('Error fetching models list:', error);
        throw new Error('Failed to fetch models list');
    }
}
