Open History to see the last commit
1import { test, expect } from './fixtures'
2
3test.describe('openai — completion-only response text', () => {
4 test('returns final text when response.completed is the only populated text event', async ({
5 request,
6 }) => {
7 const response = await request.post('/api/openai-completed-response-text')
8
9 expect(response.ok()).toBe(true)
10 await expect(response.json()).resolves.toEqual({
11 text: 'Recovered from response.completed',
12 })
13 })
14})