Skip to content

Commit

Permalink
chore(internal): update test snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertCraigie committed Aug 7, 2024
1 parent 9fd94bf commit bceea60
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 71 deletions.
60 changes: 36 additions & 24 deletions tests/lib/ChatCompletionStream.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ describe('.stream()', () => {
"index": 0,
"logprobs": null,
"message": {
"content": "{"city":"San Francisco","units":"f"}",
"content": "{"city":"San Francisco","units":"c"}",
"parsed": {
"city": "San Francisco",
"units": "f",
"units": "c",
},
"refusal": null,
"role": "assistant",
Expand Down Expand Up @@ -86,7 +86,7 @@ describe('.stream()', () => {
123,
34,
],
"logprob": -0.0010631788,
"logprob": -0.0036115935,
"token": "{"",
"top_logprobs": [],
},
Expand All @@ -97,7 +97,7 @@ describe('.stream()', () => {
116,
121,
],
"logprob": -0.0000017432603,
"logprob": -0.000008418666,
"token": "city",
"top_logprobs": [],
},
Expand All @@ -107,7 +107,7 @@ describe('.stream()', () => {
58,
34,
],
"logprob": -0.00018554063,
"logprob": -0.00034666734,
"token": "":"",
"top_logprobs": [],
},
Expand All @@ -117,7 +117,7 @@ describe('.stream()', () => {
97,
110,
],
"logprob": -0.016705167,
"logprob": -0.013863761,
"token": "San",
"top_logprobs": [],
},
Expand All @@ -134,7 +134,7 @@ describe('.stream()', () => {
99,
111,
],
"logprob": -0.000024630364,
"logprob": -0.00003190179,
"token": " Francisco",
"top_logprobs": [],
},
Expand All @@ -144,7 +144,7 @@ describe('.stream()', () => {
44,
34,
],
"logprob": -0.04316578,
"logprob": -0.03384693,
"token": "","",
"top_logprobs": [],
},
Expand All @@ -156,7 +156,7 @@ describe('.stream()', () => {
116,
115,
],
"logprob": -3.1281633e-7,
"logprob": -0.0000012664457,
"token": "units",
"top_logprobs": [],
},
Expand All @@ -166,15 +166,15 @@ describe('.stream()', () => {
58,
34,
],
"logprob": -0.000014855664,
"logprob": -0.000031305768,
"token": "":"",
"top_logprobs": [],
},
{
"bytes": [
102,
],
"logprob": -0.38687104,
"logprob": -0.5759394,
"token": "f",
"top_logprobs": [],
},
Expand All @@ -183,7 +183,7 @@ describe('.stream()', () => {
34,
125,
],
"logprob": -0.000048113485,
"logprob": -0.0000420341,
"token": ""}",
"top_logprobs": [],
},
Expand Down Expand Up @@ -248,10 +248,22 @@ describe('.stream()', () => {
39,
109,
],
"logprob": -0.0052259327,
"logprob": -0.0020705638,
"token": "I'm",
"top_logprobs": [],
},
{
"bytes": [
32,
118,
101,
114,
121,
],
"logprob": -0.60976714,
"token": " very",
"top_logprobs": [],
},
{
"bytes": [
32,
Expand All @@ -261,15 +273,15 @@ describe('.stream()', () => {
114,
121,
],
"logprob": -0.9804326,
"logprob": -0.000008180258,
"token": " sorry",
"top_logprobs": [],
},
{
"bytes": [
44,
],
"logprob": -0.00006086828,
"logprob": -0.000040603656,
"token": ",",
"top_logprobs": [],
},
Expand All @@ -280,7 +292,7 @@ describe('.stream()', () => {
117,
116,
],
"logprob": -1.1371382,
"logprob": -0.048603047,
"token": " but",
"top_logprobs": [],
},
Expand All @@ -289,7 +301,7 @@ describe('.stream()', () => {
32,
73,
],
"logprob": -0.01050545,
"logprob": -0.003929745,
"token": " I",
"top_logprobs": [],
},
Expand All @@ -302,7 +314,7 @@ describe('.stream()', () => {
39,
116,
],
"logprob": -0.2896076,
"logprob": -0.012669391,
"token": " can't",
"top_logprobs": [],
},
Expand All @@ -316,7 +328,7 @@ describe('.stream()', () => {
115,
116,
],
"logprob": -0.031149099,
"logprob": -0.0036209812,
"token": " assist",
"top_logprobs": [],
},
Expand All @@ -328,7 +340,7 @@ describe('.stream()', () => {
116,
104,
],
"logprob": -0.0052447836,
"logprob": -0.0052407524,
"token": " with",
"top_logprobs": [],
},
Expand All @@ -340,7 +352,7 @@ describe('.stream()', () => {
97,
116,
],
"logprob": -0.0049340394,
"logprob": -0.0029618926,
"token": " that",
"top_logprobs": [],
},
Expand All @@ -355,15 +367,15 @@ describe('.stream()', () => {
115,
116,
],
"logprob": -0.006166848,
"logprob": -1.7024335,
"token": " request",
"top_logprobs": [],
},
{
"bytes": [
46,
],
"logprob": -0.0000066306106,
"logprob": -0.0000026968896,
"token": ".",
"top_logprobs": [],
},
Expand All @@ -372,7 +384,7 @@ describe('.stream()', () => {
"message": {
"content": null,
"parsed": null,
"refusal": "I'm sorry, but I can't assist with that request.",
"refusal": "I'm very sorry, but I can't assist with that request.",
"role": "assistant",
"tool_calls": [],
},
Expand Down
Loading

0 comments on commit bceea60

Please sign in to comment.