Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9271,12 +9271,14 @@ components:
- OPENAI_CHAT_COMPLETIONS
- OPENAI_RESPONSES
- ANTHROPIC_MESSAGES
- SYSTEM_ONE
example: OPENAI_CHAT_COMPLETIONS
type: string
x-enum-varnames:
- OPENAI_CHAT_COMPLETIONS
- OPENAI_RESPONSES
- ANTHROPIC_MESSAGES
- SYSTEM_ONE
AiGatewayDataCaptureMode:
description: Controls whether AI Gateway captures request and response content in addition to metadata.
enum:
Expand Down Expand Up @@ -12101,6 +12103,8 @@ components:
- OPENAI_RESPONSES
- OPENAI_WEB_SEARCH
- OPENAI_EMBEDDINGS
- OPENAI_DECISIONS
- SYSTEM_ONE
- GEMINI_GENERATE_CONTENT
- GEMINI_RAW_PREDICTIONS
example: OPENAI_CHAT_COMPLETIONS
Expand All @@ -12112,6 +12116,8 @@ components:
- OPENAI_RESPONSES
- OPENAI_WEB_SEARCH
- OPENAI_EMBEDDINGS
- OPENAI_DECISIONS
- SYSTEM_ONE
- GEMINI_GENERATE_CONTENT
- GEMINI_RAW_PREDICTIONS
AiGatewayZDRMode:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,20 @@ class AiGatewayCustomProviderSupportedOperation(ModelSimple):
"""
Operation supported by a custom provider.

:param value: Must be one of ["OPENAI_CHAT_COMPLETIONS", "OPENAI_RESPONSES", "ANTHROPIC_MESSAGES"].
:param value: Must be one of ["OPENAI_CHAT_COMPLETIONS", "OPENAI_RESPONSES", "ANTHROPIC_MESSAGES", "SYSTEM_ONE"].
:type value: str
"""

allowed_values = {
"OPENAI_CHAT_COMPLETIONS",
"OPENAI_RESPONSES",
"ANTHROPIC_MESSAGES",
"SYSTEM_ONE",
}
OPENAI_CHAT_COMPLETIONS: ClassVar["AiGatewayCustomProviderSupportedOperation"]
OPENAI_RESPONSES: ClassVar["AiGatewayCustomProviderSupportedOperation"]
ANTHROPIC_MESSAGES: ClassVar["AiGatewayCustomProviderSupportedOperation"]
SYSTEM_ONE: ClassVar["AiGatewayCustomProviderSupportedOperation"]

@cached_property
def openapi_types(_):
Expand All @@ -45,3 +47,4 @@ def openapi_types(_):
AiGatewayCustomProviderSupportedOperation.ANTHROPIC_MESSAGES = AiGatewayCustomProviderSupportedOperation(
"ANTHROPIC_MESSAGES"
)
AiGatewayCustomProviderSupportedOperation.SYSTEM_ONE = AiGatewayCustomProviderSupportedOperation("SYSTEM_ONE")
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class AiGatewaySupportedOperation(ModelSimple):
"""
Operation supported by an AI Gateway model.

:param value: Must be one of ["ANTHROPIC_MESSAGES", "ANTHROPIC_COUNT_TOKENS", "OPENAI_CHAT_COMPLETIONS", "OPENAI_RESPONSES", "OPENAI_WEB_SEARCH", "OPENAI_EMBEDDINGS", "GEMINI_GENERATE_CONTENT", "GEMINI_RAW_PREDICTIONS"].
:param value: Must be one of ["ANTHROPIC_MESSAGES", "ANTHROPIC_COUNT_TOKENS", "OPENAI_CHAT_COMPLETIONS", "OPENAI_RESPONSES", "OPENAI_WEB_SEARCH", "OPENAI_EMBEDDINGS", "OPENAI_DECISIONS", "SYSTEM_ONE", "GEMINI_GENERATE_CONTENT", "GEMINI_RAW_PREDICTIONS"].
:type value: str
"""

Expand All @@ -27,6 +27,8 @@ class AiGatewaySupportedOperation(ModelSimple):
"OPENAI_RESPONSES",
"OPENAI_WEB_SEARCH",
"OPENAI_EMBEDDINGS",
"OPENAI_DECISIONS",
"SYSTEM_ONE",
"GEMINI_GENERATE_CONTENT",
"GEMINI_RAW_PREDICTIONS",
}
Expand All @@ -36,6 +38,8 @@ class AiGatewaySupportedOperation(ModelSimple):
OPENAI_RESPONSES: ClassVar["AiGatewaySupportedOperation"]
OPENAI_WEB_SEARCH: ClassVar["AiGatewaySupportedOperation"]
OPENAI_EMBEDDINGS: ClassVar["AiGatewaySupportedOperation"]
OPENAI_DECISIONS: ClassVar["AiGatewaySupportedOperation"]
SYSTEM_ONE: ClassVar["AiGatewaySupportedOperation"]
GEMINI_GENERATE_CONTENT: ClassVar["AiGatewaySupportedOperation"]
GEMINI_RAW_PREDICTIONS: ClassVar["AiGatewaySupportedOperation"]

Expand All @@ -52,5 +56,7 @@ def openapi_types(_):
AiGatewaySupportedOperation.OPENAI_RESPONSES = AiGatewaySupportedOperation("OPENAI_RESPONSES")
AiGatewaySupportedOperation.OPENAI_WEB_SEARCH = AiGatewaySupportedOperation("OPENAI_WEB_SEARCH")
AiGatewaySupportedOperation.OPENAI_EMBEDDINGS = AiGatewaySupportedOperation("OPENAI_EMBEDDINGS")
AiGatewaySupportedOperation.OPENAI_DECISIONS = AiGatewaySupportedOperation("OPENAI_DECISIONS")
AiGatewaySupportedOperation.SYSTEM_ONE = AiGatewaySupportedOperation("SYSTEM_ONE")
AiGatewaySupportedOperation.GEMINI_GENERATE_CONTENT = AiGatewaySupportedOperation("GEMINI_GENERATE_CONTENT")
AiGatewaySupportedOperation.GEMINI_RAW_PREDICTIONS = AiGatewaySupportedOperation("GEMINI_RAW_PREDICTIONS")
Loading