(payload: {
projectId: string;
tableLatex: string;
chartType: string;
title?: string;
prompt?: string;
filename?: string;
retries?: number;
llmConfig?: Partial<LLMConfig>;
})
| 349 | } |
| 350 | |
| 351 | export function plotFromTable(payload: { |
| 352 | projectId: string; |
| 353 | tableLatex: string; |
| 354 | chartType: string; |
| 355 | title?: string; |
| 356 | prompt?: string; |
| 357 | filename?: string; |
| 358 | retries?: number; |
| 359 | llmConfig?: Partial<LLMConfig>; |
| 360 | }) { |
| 361 | return request<{ ok: boolean; assetPath?: string; error?: string }>( |
| 362 | '/api/plot/from-table', |
| 363 | { |
| 364 | method: 'POST', |
| 365 | body: JSON.stringify(payload) |
| 366 | } |
| 367 | ); |
| 368 | } |
| 369 | |
| 370 | export function callLLM(payload: { |
| 371 | messages: { role: 'system' | 'user' | 'assistant'; content: string }[]; |
no test coverage detected