Skip to content

Commit

Permalink
Update for version 0.9.7 (#624)
Browse files Browse the repository at this point in the history
* 修复发版单测的兼容性问题

* Update for version 0.9.7

* update java && go
  • Loading branch information
userpj authored Nov 27, 2024
1 parent f95ca56 commit ec0d46c
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 22 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ AppBuilder-SDK不仅提供了百度智能云提供的基础能力组件,同时

## 如何安装AppBuilder-SDK

#### 百度智能云千帆AppBuilder-SDK 最新版本 0.9.6 (2024-10-26)
#### 百度智能云千帆AppBuilder-SDK 最新版本 0.9.7 (2024-11-27)

百度智能云千帆AppBuilder-SDK 更新记录&最新特性请查阅我们的[版本说明](/docs/DevelopGuide/ChangeLog/changelog.md)

Expand Down
6 changes: 5 additions & 1 deletion docs/DevelopGuide/ChangeLog/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,8 @@
* 更新AppBuilderClient,简化Java & Go语言使用ToolCall的方式
* 新增长文档内容理解组件
* 优化requirements,去除部分组件的版本限制
* 简化报错堆栈,去除冗余的Trace信息
* 简化报错堆栈,去除冗余的Trace信息
* **2024.11.27 v0.9.7版本发布** [ReleaseNote](https://github.com/baidubce/app-builder/releases/tag/0.9.7)
* 新增TreeMind组件
* 新增工作流Agent回复“信息收集节点”功能,支持多轮对话事件处理
* Python的ToolCall功能支持通过函数定义、装饰器的形式等生成ToolCall参数
2 changes: 1 addition & 1 deletion docs/DevelopGuide/HowToContributeCode/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
当前已集成Python版本AppBuilder-SDK 0.9.4及相关依赖,方便开发者融入个人已有的大模型应用程序。此部分仍在不断建设中。
二次开发可以采用官方提供的开发镜像,便于快速安装各种依赖库。也可在镜像中使用已安装的`appbuilder_trace_server``appbuilder_bce_deploy`工具。
``` shell
docker pull registry.baidubce.com/appbuilder/appbuilder-sdk-devel:0.9.6
docker pull registry.baidubce.com/appbuilder/appbuilder-sdk-devel:0.9.7
```

### 消息(Message)
Expand Down
12 changes: 6 additions & 6 deletions docs/QuickStart/StartFirstAINativeApplication/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,29 @@ pip install --upgrade appbuilder-sdk
<dependency>
<groupId>com.baidubce</groupId>
<artifactId>appbuilder</artifactId>
<version>0.9.6</version>
<version>0.9.7</version>
</dependency>
```
#### Gradle
对于Kotlin DSL,在build.gradle.kts的dependencies中添加依赖
```kotlin
implementation("com.baidubce:appbuilder:0.9.6")
implementation("com.baidubce:appbuilder:0.9.7")
```
对于Groovy DSL,在build.gradle的dependencies中添加依赖
```groovy
implementation 'com.baidubce:appbuilder:0.9.6'
implementation 'com.baidubce:appbuilder:0.9.7'
```
#### 本地导入
点击[链接](https://repo1.maven.org/maven2/com/baidubce/appbuilder/0.9.6/appbuilder-0.9.6.jar) 下载Jar包,将Jar包导入到项目目录下。
点击[链接](https://repo1.maven.org/maven2/com/baidubce/appbuilder/0.9.7/appbuilder-0.9.7.jar) 下载Jar包,将Jar包导入到项目目录下。

### Go (仅支持调用端到端应用)
> 支持Go 1.18.1以上版本,当前最新tag为0.9.8
> 支持Go 1.18.1以上版本,当前最新tag为0.9.9
```shell
go get github.com/baidubce/app-builder/go/appbuilder
````

### Docker (当前仅集成了Python版本AppBuilder-SDK)
``` shell
docker pull registry.baidubce.com/appbuilder/appbuilder-sdk-devel:0.9.6
docker pull registry.baidubce.com/appbuilder/appbuilder-sdk-devel:0.9.7
```
2 changes: 1 addition & 1 deletion docs/README_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Baidu AI Cloud Qianfan AppBuilder-SDK offers the following essential features fo

## How to install?

#### The latest version of Baidu AI Cloud Qianfan AppBuilder SDK is 0.9.6 (2024-10-26)
#### The latest version of Baidu AI Cloud Qianfan AppBuilder SDK is 0.9.7 (2024-11-27)

Baidu AI Cloud Qianfan AppBuilder SDK ReleaseNote please refer to our [version description](/docs/DevelopGuide/ChangeLog/changelog.md)

Expand Down
2 changes: 1 addition & 1 deletion docs/README_ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Baidu AI Cloud Qianfan AppBuilder-SDKは、AIアプリケーション開発者

## どのようにインストールしますか?

#### Baidu AI Cloud Qianfan AppBuilder SDKの最新バージョンは0.9.6(2024-10-26)です
#### Baidu AI Cloud Qianfan AppBuilder SDKの最新バージョンは0.9.7(2024-11-27)です

Baidu AI Cloud Qianfan AppBuilder SDKのリリースノートについては、[バージョン説明](DevelopGuide/ChangeLog/changelog.md)をご覧ください。

Expand Down
2 changes: 1 addition & 1 deletion docs/Tools/SphinxSh/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
project = 'Appbuilder-SDK'
copyright = '2024, baidubce'
author = 'baidubce'
release = '0.9.6'
release = '0.9.7'

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down
2 changes: 1 addition & 1 deletion go/appbuilder/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func (t *SDKConfig) authHeader() http.Header {
platform = "unknown"
}
header.Set("X-Appbuilder-Origin", "appbuilder_sdk")
header.Set("X-Appbuilder-Sdk-Config", "{\"appbuilder_sdk_version\":\"0.9.8\",\"appbuilder_sdk_language\":\"go\",\"appbuilder_sdk_platform\":\""+platform+"\"}")
header.Set("X-Appbuilder-Sdk-Config", "{\"appbuilder_sdk_version\":\"0.9.9\",\"appbuilder_sdk_language\":\"go\",\"appbuilder_sdk_platform\":\""+platform+"\"}")
header.Set("X-Appbuilder-Request-Id", uuid.New().String())
return header
}
Expand Down
2 changes: 1 addition & 1 deletion java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.baidubce</groupId>
<artifactId>appbuilder</artifactId>
<version>0.9.6</version>
<version>0.9.7</version>
<packaging>jar</packaging>

<name>app-builder</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public ClassicHttpRequest createPostRequest(String url, HttpEntity entity) {
? System.getenv("APPBUILDER_SDK_PLATFORM")
: "unknown";
httpPost.setHeader("X-Appbuilder-Sdk-Config",
"{\"appbuilder_sdk_version\":\"0.9.6\",\"appbuilder_sdk_language\":\"java\",\"appbuilder_sdk_platform\":\""
"{\"appbuilder_sdk_version\":\"0.9.7\",\"appbuilder_sdk_language\":\"java\",\"appbuilder_sdk_platform\":\""
+ platform + "\"}");
httpPost.setHeader("X-Appbuilder-Request-Id", java.util.UUID.randomUUID().toString());
httpPost.setEntity(entity);
Expand Down Expand Up @@ -134,7 +134,7 @@ public ClassicHttpRequest createPostRequestV2(String url, HttpEntity entity) {
? System.getenv("APPBUILDER_SDK_PLATFORM")
: "unknown";
httpPost.setHeader("X-Appbuilder-Sdk-Config",
"{\"appbuilder_sdk_version\":\"0.9.6\",\"appbuilder_sdk_language\":\"java\",\"appbuilder_sdk_platform\":\""
"{\"appbuilder_sdk_version\":\"0.9.7\",\"appbuilder_sdk_language\":\"java\",\"appbuilder_sdk_platform\":\""
+ platform + "\"}");
httpPost.setHeader("X-Appbuilder-Request-Id", java.util.UUID.randomUUID().toString());
httpPost.setEntity(entity);
Expand All @@ -158,7 +158,7 @@ public ClassicHttpRequest createGetRequestV2(String url, Map<String, Object> map
? System.getenv("APPBUILDER_SDK_PLATFORM")
: "unknown";
httpGet.setHeader("X-Appbuilder-Sdk-Config",
"{\"appbuilder_sdk_version\":\"0.9.6\",\"appbuilder_sdk_language\":\"java\",\"appbuilder_sdk_platform\":\""
"{\"appbuilder_sdk_version\":\"0.9.7\",\"appbuilder_sdk_language\":\"java\",\"appbuilder_sdk_platform\":\""
+ platform + "\"}");
httpGet.setHeader("X-Appbuilder-Request-Id", java.util.UUID.randomUUID().toString());
String headers = "headers: \n";
Expand All @@ -184,7 +184,7 @@ public ClassicHttpRequest createDeleteRequestV2(String url, Map<String, Object>
? System.getenv("APPBUILDER_SDK_PLATFORM")
: "unknown";
httpDelete.setHeader("X-Appbuilder-Sdk-Config",
"{\"appbuilder_sdk_version\":\"0.9.6\",\"appbuilder_sdk_language\":\"java\",\"appbuilder_sdk_platform\":\""
"{\"appbuilder_sdk_version\":\"0.9.7\",\"appbuilder_sdk_language\":\"java\",\"appbuilder_sdk_platform\":\""
+ platform + "\"}");
httpDelete.setHeader("X-Appbuilder-Request-Id", java.util.UUID.randomUUID().toString());
String headers = "headers: \n";
Expand Down
2 changes: 1 addition & 1 deletion python/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.


__version__ = '0.9.6'
__version__ = '0.9.7'

import os
import sys
Expand Down
4 changes: 2 additions & 2 deletions python/utils/bce_deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ def build_user_data(self):
+ f"rm {self.tar_file_name}\\n"
+ f"chmod a+x {self.run_script_name}\\n"
+ "yum install -y docker\\n"
+ "docker pull registry.baidubce.com/appbuilder/appbuilder-sdk-cloud:0.9.6\\n"
+ f"docker run -itd --net=host -v /root/test:{workspace} --name appbuilder-sdk registry.baidubce.com/appbuilder/appbuilder-sdk-cloud:0.9.6{workspace}/{self.run_script_name}"
+ "docker pull registry.baidubce.com/appbuilder/appbuilder-sdk-cloud:0.9.7\\n"
+ f"docker run -itd --net=host -v /root/test:{workspace} --name appbuilder-sdk registry.baidubce.com/appbuilder/appbuilder-sdk-cloud:0.9.7{workspace}/{self.run_script_name}"
)

return user_data
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
setup(
name="appbuilder-sdk",
# NOTE(chengmo): 修改此版本号时,请注意同时修改 __init__.py 中的 __version__
version="0.9.6",
version="0.9.7",
author="dongdaxiang",
author_email="[email protected]",
packages=packages,
Expand Down

0 comments on commit ec0d46c

Please sign in to comment.