@@ -473,6 +473,25 @@ components:
473473 oneOf :
474474 - $ref : " #/components/schemas/AnyObject"
475475 - $ref : " #/components/schemas/AnyPrimitive"
476+ LlmApi :
477+ type : string
478+ oneOf :
479+ - title : OPENAI_V0_COMPLETION_CREATE
480+ const : openai.Completion.create
481+ - title : OPENAI_V1_COMPLETION_CREATE
482+ const : openai.completions.create
483+ - title : OPENAI_V0_CHAT_COMPLETION_CREATE
484+ const : openai.ChatCompletion.create
485+ - title : OPENAI_V1_CHAT_COMPLETION_CREATE
486+ const : openai.chat.completions.create
487+ - title : OPENAI_V0_COMPLETION_ASYNC_CREATE
488+ const : openai.Completion.acreate
489+ - title : OPENAI_V0_CHAT_COMPLETION_ASYNC_CREATE
490+ const : openai.ChatCompletion.acreate
491+ - title : LITELLM_COMPLETION
492+ const : litellm.completion
493+ - title : LITELLM_ASYNC_COMPLETION
494+ const : litellm.acompletion
476495 ValidatePayload :
477496 type : object
478497 properties :
@@ -489,16 +508,5 @@ components:
489508 properties : {}
490509 additionalProperties : {}
491510 llmApi :
492- type : string
493- enum :
494- [
495- " openai.Completion.create" ,
496- " openai.completions.create" ,
497- " openai.ChatCompletion.create" ,
498- " openai.chat.completions.create" ,
499- " openai.Completion.acreate" ,
500- " openai.ChatCompletion.acreate" ,
501- " litellm.completion" ,
502- " litellm.acompletion"
503- ]
511+ $ref : " #/components/schemas/LlmApi"
504512 additionalProperties : {}
0 commit comments