Skip to content

Commit 2233553

Browse files
committed
Update tests
1 parent 7c400bb commit 2233553

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

Pro

Submodule Pro updated from 751d7c6 to cc117ac

TestPlan.xctestplan

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,6 @@
8585
"name" : "TokenEncoderTests"
8686
}
8787
},
88-
{
89-
"target" : {
90-
"containerPath" : "container:Pro",
91-
"identifier" : "LicenseManagementTests",
92-
"name" : "LicenseManagementTests"
93-
}
94-
},
9588
{
9689
"target" : {
9790
"containerPath" : "container:Tool",
@@ -105,6 +98,13 @@
10598
"identifier" : "SharedUIComponentsTests",
10699
"name" : "SharedUIComponentsTests"
107100
}
101+
},
102+
{
103+
"target" : {
104+
"containerPath" : "container:Pro",
105+
"identifier" : "LicenseManagementTests",
106+
"name" : "LicenseManagementTests"
107+
}
108108
}
109109
],
110110
"version" : 1

Tool/Tests/OpenAIServiceTests/ChatGPTStreamTests.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -253,16 +253,16 @@ extension ChatGPTStreamTests {
253253
return (
254254
AsyncThrowingStream<CompletionStreamDataTrunk, Error> { continuation in
255255
let trunks: [CompletionStreamDataTrunk] = [
256-
.init(id: id, object: "", created: 0, model: "", choices: [
256+
.init(id: id, object: "", model: "", choices: [
257257
.init(delta: .init(role: .assistant), index: 0, finish_reason: ""),
258258
]),
259-
.init(id: id, object: "", created: 0, model: "", choices: [
259+
.init(id: id, object: "", model: "", choices: [
260260
.init(delta: .init(content: "hello"), index: 0, finish_reason: ""),
261261
]),
262-
.init(id: id, object: "", created: 0, model: "", choices: [
262+
.init(id: id, object: "", model: "", choices: [
263263
.init(delta: .init(content: "my"), index: 0, finish_reason: ""),
264264
]),
265-
.init(id: id, object: "", created: 0, model: "", choices: [
265+
.init(id: id, object: "", model: "", choices: [
266266
.init(delta: .init(content: "friends"), index: 0, finish_reason: ""),
267267
]),
268268
]
@@ -286,7 +286,7 @@ extension ChatGPTStreamTests {
286286
return (
287287
AsyncThrowingStream<CompletionStreamDataTrunk, Error> { continuation in
288288
let trunks: [CompletionStreamDataTrunk] = [
289-
.init(id: id, object: "", created: 0, model: "", choices: [
289+
.init(id: id, object: "", model: "", choices: [
290290
.init(
291291
delta: .init(
292292
role: .assistant,
@@ -295,7 +295,7 @@ extension ChatGPTStreamTests {
295295
index: 0,
296296
finish_reason: ""
297297
)]),
298-
.init(id: id, object: "", created: 0, model: "", choices: [
298+
.init(id: id, object: "", model: "", choices: [
299299
.init(
300300
delta: .init(
301301
role: .assistant,
@@ -304,7 +304,7 @@ extension ChatGPTStreamTests {
304304
index: 0,
305305
finish_reason: ""
306306
)]),
307-
.init(id: id, object: "", created: 0, model: "", choices: [
307+
.init(id: id, object: "", model: "", choices: [
308308
.init(
309309
delta: .init(
310310
role: .assistant,
@@ -313,7 +313,7 @@ extension ChatGPTStreamTests {
313313
index: 0,
314314
finish_reason: ""
315315
)]),
316-
.init(id: id, object: "", created: 0, model: "", choices: [
316+
.init(id: id, object: "", model: "", choices: [
317317
.init(
318318
delta: .init(
319319
role: .assistant,

0 commit comments

Comments
 (0)