-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sdk: rolling update for 1.2.21-release
- Loading branch information
1 parent
7f082f9
commit f0d4512
Showing
75 changed files
with
2,224 additions
and
123 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 |
---|---|---|
@@ -1 +1 @@ | ||
1.2.20-release | ||
1.2.21-release |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<parent> | ||
<artifactId>ucloud-sdk-java</artifactId> | ||
<groupId>cn.ucloud</groupId> | ||
<version>1.2.21-release</version> | ||
</parent> | ||
|
||
<modelVersion>4.0.0</modelVersion> | ||
<artifactId>ucloud-sdk-java-uai_modelverse</artifactId> | ||
<version>1.2.21-release</version> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>cn.ucloud</groupId> | ||
<artifactId>ucloud-sdk-java-common</artifactId> | ||
<version>1.2.21-release</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.google.code.gson</groupId> | ||
<artifactId>gson</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>commons-codec</groupId> | ||
<artifactId>commons-codec</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.commons</groupId> | ||
<artifactId>commons-lang3</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>slf4j-simple</artifactId> | ||
<scope>provided</scope> | ||
</dependency> | ||
</dependencies> | ||
</project> |
105 changes: 105 additions & 0 deletions
105
...va-uai_modelverse/src/main/java/cn/ucloud/uai_modelverse/client/UAI-ModelverseClient.java
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,105 @@ | ||
/** | ||
* Copyright 2021 UCloud Technology Co., Ltd. | ||
* | ||
* <p>Licensed 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 | ||
* | ||
* <p>http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* <p>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. | ||
*/ | ||
package cn.ucloud.uaimodelverse.client; | ||
|
||
import cn.ucloud.common.client.DefaultClient; | ||
import cn.ucloud.common.config.Config; | ||
import cn.ucloud.common.credential.Credential; | ||
import cn.ucloud.common.exception.UCloudException; | ||
import cn.ucloud.uaimodelverse.models.CreateMVAppRequest; | ||
import cn.ucloud.uaimodelverse.models.CreateMVAppResponse; | ||
import cn.ucloud.uaimodelverse.models.DeleteMVAppRequest; | ||
import cn.ucloud.uaimodelverse.models.DeleteMVAppResponse; | ||
import cn.ucloud.uaimodelverse.models.QueryMVAppRequest; | ||
import cn.ucloud.uaimodelverse.models.QueryMVAppResponse; | ||
import cn.ucloud.uaimodelverse.models.QueryMVLLMListRequest; | ||
import cn.ucloud.uaimodelverse.models.QueryMVLLMListResponse; | ||
import cn.ucloud.uaimodelverse.models.RunMVChatRequest; | ||
import cn.ucloud.uaimodelverse.models.RunMVChatResponse; | ||
import cn.ucloud.uaimodelverse.models.UpdateMVAppRequest; | ||
import cn.ucloud.uaimodelverse.models.UpdateMVAppResponse; | ||
|
||
/** This client is used to call actions of **UAIModelverse** service */ | ||
public class UAIModelverseClient extends DefaultClient implements UAIModelverseClientInterface { | ||
public UAIModelverseClient(Config config, Credential credential) { | ||
super(config, credential); | ||
} | ||
|
||
/** | ||
* CreateMVApp - 创建应用 | ||
* | ||
* @param request Request object | ||
* @throws UCloudException Exception | ||
*/ | ||
public CreateMVAppResponse createMVApp(CreateMVAppRequest request) throws UCloudException { | ||
request.setAction("CreateMVApp"); | ||
return (CreateMVAppResponse) this.invoke(request, CreateMVAppResponse.class); | ||
} | ||
|
||
/** | ||
* DeleteMVApp - 删除应用 | ||
* | ||
* @param request Request object | ||
* @throws UCloudException Exception | ||
*/ | ||
public DeleteMVAppResponse deleteMVApp(DeleteMVAppRequest request) throws UCloudException { | ||
request.setAction("DeleteMVApp"); | ||
return (DeleteMVAppResponse) this.invoke(request, DeleteMVAppResponse.class); | ||
} | ||
|
||
/** | ||
* QueryMVApp - 查询应用信息 | ||
* | ||
* @param request Request object | ||
* @throws UCloudException Exception | ||
*/ | ||
public QueryMVAppResponse queryMVApp(QueryMVAppRequest request) throws UCloudException { | ||
request.setAction("QueryMVApp"); | ||
return (QueryMVAppResponse) this.invoke(request, QueryMVAppResponse.class); | ||
} | ||
|
||
/** | ||
* QueryMVLLMList - 查询语言模型信息 | ||
* | ||
* @param request Request object | ||
* @throws UCloudException Exception | ||
*/ | ||
public QueryMVLLMListResponse queryMVLLMList(QueryMVLLMListRequest request) | ||
throws UCloudException { | ||
request.setAction("QueryMVLLMList"); | ||
return (QueryMVLLMListResponse) this.invoke(request, QueryMVLLMListResponse.class); | ||
} | ||
|
||
/** | ||
* RunMVChat - 聊天 | ||
* | ||
* @param request Request object | ||
* @throws UCloudException Exception | ||
*/ | ||
public RunMVChatResponse runMVChat(RunMVChatRequest request) throws UCloudException { | ||
request.setAction("RunMVChat"); | ||
return (RunMVChatResponse) this.invoke(request, RunMVChatResponse.class); | ||
} | ||
|
||
/** | ||
* UpdateMVApp - 更新应用 | ||
* | ||
* @param request Request object | ||
* @throws UCloudException Exception | ||
*/ | ||
public UpdateMVAppResponse updateMVApp(UpdateMVAppRequest request) throws UCloudException { | ||
request.setAction("UpdateMVApp"); | ||
return (UpdateMVAppResponse) this.invoke(request, UpdateMVAppResponse.class); | ||
} | ||
} |
Oops, something went wrong.