Skip to content

Commit

Permalink
Progress updating to OpenAI v2. Fails to generate `CreateAssistantReq…
Browse files Browse the repository at this point in the history
…uestToolResourcesFileSearch`
  • Loading branch information
raulraja committed May 15, 2024
1 parent 1aef223 commit 5960e46
Show file tree
Hide file tree
Showing 3 changed files with 8,503 additions and 4,039 deletions.
4 changes: 2 additions & 2 deletions openai-client/generator/config/api.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ interface {{classname}} {
{{/operations}}

{{#operations}}
fun {{classname}}(client: HttpClient, config: Config): {{classname}} = object : {{classname}} {
fun {{classname}}(client: HttpClient, config: Config): {{apiPackage}}.{{classname}} = object : {{apiPackage}}.{{classname}} {
{{#operation}}
override suspend fun {{operationId}}({{#allParams}}{{{paramName}}}: {{#isEnum}}{{# isContainer}}kotlin.collections.List<{{enumName}}{{operationIdCamelCase}}>{{/isContainer}}{{^isContainer}}{{enumName}}{{operationIdCamelCase}}{{/isContainer}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}{{^required}}?{{/required}},{{/allParams}} configure: HttpRequestBuilder.() -> Unit): {{#returnProperty}}{{#isFile}}HttpResponse{{/isFile}}{{^isFile}}{{{returnType}}}{{^returnType}}Unit{{/returnType}}{{/isFile}}{{/returnProperty}} =
client.request {
Expand Down Expand Up @@ -190,4 +190,4 @@ fun {{classname}}(client: HttpClient, config: Config): {{classname}} = object :
{{/vendorExtensions.x-streaming}}
{{/operation}}
}
{{/operations}}
{{/operations}}
2 changes: 1 addition & 1 deletion openai-client/generator/config/openai-api-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
44306c2f4534144e169721e2ad160e00b6823bc7
df5699f5c48fe455d9d036198e77fdb637edee29
Loading

0 comments on commit 5960e46

Please sign in to comment.