File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ pattern change_constructor() {
21
21
$program <: contains or {
22
22
`const $config = new Configuration($details)`,
23
23
`let $config = new Configuration($details)`,
24
- `var $config = new Configuration($details)`
24
+ `var $config = new Configuration($details)`,
25
+ `$config = new Configuration($details)`,
25
26
} => .,
26
27
}
27
28
},
@@ -235,6 +236,10 @@ pattern fix_types() {
235
236
`FineTuneEvent` => `OpenAI.FineTuneEvent`,
236
237
`ImagesResponse` => `OpenAI.ImagesResponse`,
237
238
`OpenAIFile` => `OpenAI.FileObject`,
239
+ `ChatCompletionRequestMessageFunctionCall` => `OpenAI.Chat.ChatCompletionMessage.FunctionCall`,
240
+ `ChatCompletionFunctions` => `OpenAI.Chat.CompletionCreateParams.Function`,
241
+ `ConfigurationParameters` => `ClientOptions`,
242
+ `OpenAIApi` => `OpenAI`,
238
243
} as $thing where or {
239
244
$thing <: imported_from(from=`"openai"`),
240
245
$program <: contains `$old = require($from)` where {
You can’t perform that action at this time.
0 commit comments