Skip to content

Commit

Permalink
Sync Gloo APIs. Destination Branch: gloo-v1.18.x
Browse files Browse the repository at this point in the history
  • Loading branch information
soloio-bot committed Feb 25, 2025
1 parent adb6abf commit 5a47898
Show file tree
Hide file tree
Showing 5 changed files with 514 additions and 416 deletions.
15 changes: 14 additions & 1 deletion 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 @@ -431,6 +435,7 @@ message SemanticCache {
//
// +kubebuilder:validation:Minimum=0
// +kubebuilder:validation:Maximum=1
// Deprecated: Prefer setting the distance threshold in the RouteOptions.SemanticCache resource.
float score_threshold = 2;
}

Expand Down Expand Up @@ -474,6 +479,14 @@ message SemanticCache {
uint32 ttl = 3;
// The caching mode to use for the request and response lifecycle. Supported values include `READ_WRITE` or `READ_ONLY`.
Mode mode = 4;

// Distance score threshold value between 0.0 and 1.0 that determines how similar
// two queries must be in order to return a cached result.
// The lower the number, the more similar the queries must be for a cache hit.
//
// +kubebuilder:validation:Minimum=0
// +kubebuilder:validation:Maximum=1
float distance_threshold = 5;
}

// [Retrieval augmented generation (RAG)](https://research.ibm.com/blog/retrieval-augmented-generation-RAG)
Expand Down
10 changes: 10 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.

14 changes: 14 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 5a47898

Please sign in to comment.