mirror of
https://github.com/mudler/LocalAI.git
synced 2025-06-29 22:20:43 +00:00
20 lines
No EOL
642 B
Cheetah
20 lines
No EOL
642 B
Cheetah
// TEMP: Consider revising this in oapi-codegen to make cleaner or at least renaming....
|
|
|
|
|
|
var EndpointToRequestBodyMap = map[string]interface{}{
|
|
{{range .}}{{$opid := .OperationId -}}
|
|
{{ $reqBody := genDefaultRequestBodyType . -}}{{if ne $reqBody "" -}}
|
|
"{{$opid}}":{{genDefaultRequestBodyType .}}{},
|
|
{{end -}}
|
|
{{end -}}
|
|
}
|
|
|
|
var EndpointConfigMap = map[string]Config{
|
|
{{range .}}{{$opid := .OperationId -}}
|
|
{{ $reqBody := genDefaultRequestBodyType . -}}{{if ne $reqBody "" -}}
|
|
"{{$opid}}":SpecificConfig[{{genDefaultRequestBodyType .}}]{},
|
|
{{else -}}
|
|
"{{$opid}}":ConfigStub{},
|
|
{{end -}}
|
|
{{end -}}
|
|
} |