File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
openai-client/src/main/scala/io/cequence/openaiscala
openai-guice/src/main/scala/io/cequence/openaiscala/service Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ object JsonUtil {
21
21
}
22
22
23
23
def asSafeArray [T ](implicit fjs : Reads [T ]): Seq [T ] =
24
- json.asSafe[JsArray ].value.map(
24
+ json.asSafe[JsArray ].value.toSeq. map(
25
25
_.asSafe[T ]
26
26
)
27
27
}
Original file line number Diff line number Diff line change @@ -19,11 +19,11 @@ trait GuiceContainer {
19
19
protected def instance [T : Manifest ] = injector.instance[T ]
20
20
21
21
protected def result [T ](future : Future [T ]) =
22
- Await .result(future, 100 minutes)
22
+ Await .result(future, 100 . minutes)
23
23
24
24
protected def terminate : Unit = {
25
25
val system = instance[ActorSystem ]
26
26
system.terminate
27
- Await .result(system.whenTerminated, 1 day)
27
+ Await .result(system.whenTerminated, 1 . day)
28
28
}
29
29
}
You can’t perform that action at this time.
0 commit comments