-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2445 from CrowleyRajapakse/ai
Adding AI Provider CRD implementation
- Loading branch information
Showing
63 changed files
with
4,944 additions
and
310 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// Copyright (c) 2024, WSO2 LLC. (http://www.wso2.org) All Rights Reserved. | ||
// | ||
// WSO2 LLC. licenses this file to you under the Apache License, | ||
// Version 2.0 (the "License"); you may not use this file except | ||
// in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, | ||
// software distributed under the License is distributed on an | ||
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
// KIND, either express or implied. See the License for the | ||
// specific language governing permissions and limitations | ||
// under the License. | ||
|
||
syntax = "proto3"; | ||
|
||
package wso2.discovery.api; | ||
|
||
|
||
option go_package = "github.com/envoyproxy/go-control-plane/wso2/discovery/api;api"; | ||
option java_package = "org.wso2.apk.enforcer.discovery.api"; | ||
option java_outer_classname = "AIProviderProto"; | ||
option java_multiple_files = true; | ||
|
||
// [#protodoc-title: AIProvider] | ||
|
||
// Holds AIProvider configs | ||
message AIProvider { | ||
string providerName = 1; | ||
string providerAPIVersion = 2; | ||
string organization = 3; | ||
ValueDetails model = 4; | ||
ValueDetails promptTokens = 5; | ||
ValueDetails completionToken = 6; | ||
ValueDetails totalToken = 7; | ||
bool enabled = 8; | ||
} | ||
|
||
// Holds ValueDetails configs | ||
message ValueDetails { | ||
string in = 1; | ||
string value = 2; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.