(content: string, id?: string)
| 36 | } |
| 37 | |
| 38 | function makeDelta(content: string, id?: string): string { |
| 39 | return JSON.stringify({ |
| 40 | method: 'chat.completions.delta', |
| 41 | params: { |
| 42 | ...(id ? { id } : {}), |
| 43 | data: JSON.stringify({ choices: [{ delta: { content } }] }), |
| 44 | }, |
| 45 | }) |
| 46 | } |
| 47 | |
| 48 | function makeCompleted(id?: string): string { |
| 49 | return JSON.stringify({ |
no outgoing calls
no test coverage detected