File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
openai-client/src/main/scala/io/cequence/openaiscala Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,13 @@ object JsonFormats {
42
42
implicit val functionCallSpecFormat : Format [FunctionCallSpec ] = Json .format[FunctionCallSpec ]
43
43
implicit val messageSpecFormat : Format [MessageSpec ] = Json .format[MessageSpec ]
44
44
implicit val funMessageSpecFormat : Format [FunMessageSpec ] = Json .format[FunMessageSpec ]
45
- private implicit val stringAnyMapFormat : Format [Map [String , Any ]] = JsonUtil .StringAnyMapFormat
46
- implicit val functionSpecFormat : Format [FunctionSpec ] = Json .format[FunctionSpec ]
45
+
46
+ implicit val functionSpecFormat : Format [FunctionSpec ] = {
47
+ // use just here for FunctionSpec
48
+ implicit val stringAnyMapFormat : Format [Map [String , Any ]] = JsonUtil .StringAnyMapFormat
49
+ Json .format[FunctionSpec ]
50
+ }
51
+
47
52
implicit val chatMessageFormat : Format [ChatMessage ] = Json .format[ChatMessage ]
48
53
implicit val chatCompletionChoiceInfoFormat : Format [ChatCompletionChoiceInfo ] = Json .format[ChatCompletionChoiceInfo ]
49
54
implicit val chatCompletionResponseFormat : Format [ChatCompletionResponse ] = Json .format[ChatCompletionResponse ]
You can’t perform that action at this time.
0 commit comments