Files
gpt-load/internal/protocol/protocol.go
T

30 lines
555 B
Go

// Package protocol defines protocol identifiers shared by runtime domains.
package protocol
type Protocol string
const (
OpenAI Protocol = "openai"
Anthropic Protocol = "anthropic"
Gemini Protocol = "gemini"
OpenAIResponse Protocol = "openai-response"
)
func (p Protocol) Valid() bool {
switch p {
case OpenAI, Anthropic, Gemini, OpenAIResponse:
return true
default:
return false
}
}
func (p Protocol) DataPlaneEnabled() bool {
switch p {
case OpenAI, Anthropic, Gemini:
return true
default:
return false
}
}