Skip to content

Commit 008501e

Browse files
committed
Merge branch 'litellm-support' of https://github.com/guardrails-ai/guardrails-api-client into litellm-support
2 parents 77b052d + ca2a24a commit 008501e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

guardrails-api-client/guardrails_api_client/models/validate_payload_llm_api.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22

33

44
class ValidatePayloadLlmApi(str, Enum):
5+
LITELLM_ACOMPLETION = "litellm.acompletion"
6+
LITELLM_COMPLETION = "litellm.completion"
57
OPENAI_CHATCOMPLETION_ACREATE = "openai.ChatCompletion.acreate"
68
OPENAI_CHATCOMPLETION_CREATE = "openai.ChatCompletion.create"
9+
OPENAI_CHAT_COMPLETIONS_CREATE = "openai.chat.completions.create"
10+
OPENAI_COMPLETIONS_CREATE = "openai.completions.create"
711
OPENAI_COMPLETION_ACREATE = "openai.Completion.acreate"
812
OPENAI_COMPLETION_CREATE = "openai.Completion.create"
913

open-api-spec.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@ components:
780780
additionalProperties: {}
781781
llmApi:
782782
type: string
783-
enum: ["openai.Completion.create", "openai.ChatCompletion.create", "openai.Completion.acreate", "openai.ChatCompletion.acreate"]
783+
enum: ["openai.Completion.create", "openai.completions.create", "openai.ChatCompletion.create", "openai.chat.completions.create", "openai.Completion.acreate", "openai.ChatCompletion.acreate", "litellm.completion", "litellm.acompletion"]
784784
additionalProperties: {}
785785
Ingestion:
786786
type: object

0 commit comments

Comments
 (0)