Skip to content

Commit

Permalink
updated example
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane Osbourne committed Aug 20, 2024
1 parent 8ea4829 commit 67ef515
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
10 changes: 1 addition & 9 deletions examples/openai/bslive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}]}
2 changes: 1 addition & 1 deletion tests/sse.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
""
"Thsis"
" is"
" a"
" test"
"."
undefined

0 comments on commit 67ef515

Please sign in to comment.