diff --git a/examples/openai/bslive.yml b/examples/openai/bslive.yml index 587b9ef..e04f85f 100644 --- a/examples/openai/bslive.yml +++ b/examples/openai/bslive.yml @@ -12,12 +12,4 @@ servers: data: {"id":"chatcmpl-98DH53xoEHQ7RhaBF9Djt0GoczbM2","object":"chat.completion.chunk","created":1711744679,"model":"gpt-3.5-turbo-0125","system_fingerprint":"fp_3bc1b5746c","choices":[{"index":0,"delta":{"content":"Thsis"},"logprobs":null,"finish_reason":null}]} - data: {"id":"chatcmpl-98DH53xoEHQ7RhaBF9Djt0GoczbM2","object":"chat.completion.chunk","created":1711744679,"model":"gpt-3.5-turbo-0125","system_fingerprint":"fp_3bc1b5746c","choices":[{"index":0,"delta":{"content":" is"},"logprobs":null,"finish_reason":null}]} - - data: {"id":"chatcmpl-98DH53xoEHQ7RhaBF9Djt0GoczbM2","object":"chat.completion.chunk","created":1711744679,"model":"gpt-3.5-turbo-0125","system_fingerprint":"fp_3bc1b5746c","choices":[{"index":0,"delta":{"content":" a"},"logprobs":null,"finish_reason":null}]} - - data: {"id":"chatcmpl-98DH53xoEHQ7RhaBF9Djt0GoczbM2","object":"chat.completion.chunk","created":1711744679,"model":"gpt-3.5-turbo-0125","system_fingerprint":"fp_3bc1b5746c","choices":[{"index":0,"delta":{"content":" test"},"logprobs":null,"finish_reason":null}]} - - data: {"id":"chatcmpl-98DH53xoEHQ7RhaBF9Djt0GoczbM2","object":"chat.completion.chunk","created":1711744679,"model":"gpt-3.5-turbo-0125","system_fingerprint":"fp_3bc1b5746c","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}]} - - data: {"id":"chatcmpl-98DH53xoEHQ7RhaBF9Djt0GoczbM2","object":"chat.completion.chunk","created":1711744679,"model":"gpt-3.5-turbo-0125","system_fingerprint":"fp_3bc1b5746c","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}]} + data: {"id":"chatcmpl-98DH53xoEHQ7RhaBF9Djt0GoczbM2","object":"chat.completion.chunk","created":1711744679,"model":"gpt-3.5-turbo-0125","system_fingerprint":"fp_3bc1b5746c","choices":[{"index":0,"delta":{"content":" is"},"logprobs":null,"finish_reason":null}]} diff --git a/tests/sse.spec.ts b/tests/sse.spec.ts index 7b94e35..0c704df 100644 --- a/tests/sse.spec.ts +++ b/tests/sse.spec.ts @@ -11,7 +11,7 @@ test.describe('examples/openai/bslive.yml', { }, () => { test('server sent events', async ({page, bs}) => { await page.goto(bs.path('/'), {waitUntil: 'networkidle'}) - await expect(page.locator('#output')).toContainText('"" "Thsis" " is" " a" " test" "." undefined', {timeout: 10000}); + await expect(page.locator('#output')).toContainText('"" "Thsis" " is"', {timeout: 10000}); const html = await page.innerHTML('#output'); expect(html).toMatchSnapshot() }); diff --git a/tests/sse.spec.ts-snapshots/examples-openai-bslive-yml-server-sent-events-1-chromium-darwin.txt b/tests/sse.spec.ts-snapshots/examples-openai-bslive-yml-server-sent-events-1-chromium-darwin.txt index b76f356..2aa6c4b 100644 --- a/tests/sse.spec.ts-snapshots/examples-openai-bslive-yml-server-sent-events-1-chromium-darwin.txt +++ b/tests/sse.spec.ts-snapshots/examples-openai-bslive-yml-server-sent-events-1-chromium-darwin.txt @@ -1,7 +1,3 @@ "" "Thsis" " is" -" a" -" test" -"." -undefined