Skip to content

Commit

Permalink
Sync Gloo APIs. Destination Branch: gloo-main
Browse files Browse the repository at this point in the history
  • Loading branch information
soloio-bot committed Feb 24, 2025
1 parent 114064e commit b5f9328
Show file tree
Hide file tree
Showing 5 changed files with 474 additions and 422 deletions.
9 changes: 5 additions & 4 deletions api/gloo/gloo/v1/enterprise/options/ai/ai.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ option go_package = "github.com/solo-io/solo-apis/pkg/api/gloo.solo.io/v1/enterp

import "github.com/solo-io/solo-kit/api/v1/ref.proto";
import "google/protobuf/struct.proto";
import "google/protobuf/wrappers.proto";
import "extproto/ext.proto";
option (extproto.equal_all) = true;
option (extproto.hash_all) = true;
Expand Down Expand Up @@ -60,10 +61,13 @@ message UpstreamSpec {
// Send requests to a custom host and port, such as to proxy the request,
// or to use a different backend that is API-compliant with the upstream version.
message CustomHost {
// Custom host to send the traffic requests to.
// Custom host or IP address to send the traffic requests to.
string host = 1;
// Custom port to send the traffic requests to.
uint32 port = 2;
// Optional: hostname used to set the SNI (if is secure connection) and the host request header.
// If hostname is not set, host will be used instead
google.protobuf.StringValue hostname = 3;
}

// Settings for the [OpenAI](https://platform.openai.com/docs/overview) LLM provider.
Expand Down Expand Up @@ -655,7 +659,6 @@ message AIPromptGuard {
message HeaderMatch {
// The header string match type.
enum MatchType {
option allow_alias = true;
// The string must match exactly the specified string.
EXACT = 0;
// The string must have the specified prefix.
Expand All @@ -666,8 +669,6 @@ message AIPromptGuard {
CONTAINS = 3;
// The string must match the specified [RE2-style regular expression](https://github.com/google/re2/wiki/) pattern.
REGEX = 4;
// Do not use. Use `REGEX` (fully capitalized) instead.
regex = 4;
}
// The header key string to match against.
string key = 1;
Expand Down
8 changes: 8 additions & 0 deletions pkg/api/gloo.solo.io/v1/enterprise/options/ai/ai.pb.clone.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions pkg/api/gloo.solo.io/v1/enterprise/options/ai/ai.pb.equal.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b5f9328

Please sign in to comment.