Skip to content

Commit

Permalink
Update for 0.7.1 (#322)
Browse files Browse the repository at this point in the history
* add base code for 071

* update doc

* update
  • Loading branch information
MrChengmo authored May 21, 2024
1 parent bbf2d72 commit e1a08f7
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

## 如何安装

#### 百度智能云千帆AppBuilder-SDK 最新版本 0.7.0 (2024-04-30)
#### 百度智能云千帆AppBuilder-SDK 最新版本 0.7.1 (2024-05-21)

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

Expand Down
2 changes: 1 addition & 1 deletion README_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ We provide three types of functions from bottom to top: basic components, proces

## How to install?

#### The latest version of Baidu AI Cloud Qianfan AppBuilder SDK is 0.7.0 (2024-04-30)
#### The latest version of Baidu AI Cloud Qianfan AppBuilder SDK is 0.7.1 (2024-05-21)

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

Expand Down
2 changes: 1 addition & 1 deletion appbuilder/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.


__version__ = '0.7.0'
__version__ = '0.7.1'

import sys
import copy
Expand Down
6 changes: 3 additions & 3 deletions docs/basic_module/assistant_sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
封装程度由高至低,提供了三种类型的SDK
| 分类 | 场景及使用方式 | 百度云文档链接 | SDK 文档链接|
|--------|--------|------------|------------|
| 端到端应用 | 在 AppBuilder 产品界面上通过零代码、低代码方式创建的 AI 原生应用,支持通过应用 API/SDK 进行调用 | [应用API及SDK](https://cloud.baidu.com/doc/AppBuilder/s/Flpv3oxup) | [Agent SDK](./agent_builder.md) |
| 端到端应用 | 在 AppBuilder 产品界面上通过零代码、低代码方式创建的 AI 原生应用,支持通过应用 API/SDK 进行调用 | [应用API及SDK](https://cloud.baidu.com/doc/AppBuilder/s/Flpv3oxup) | [Agent SDK](./appbuilder_client.md) |
| 代码态智能体 | 基于 Assistants API,可通过全代码形式创建和调试专属智能体(Agent) | [AssistantAPI](https://cloud.baidu.com/doc/AppBuilder/s/nluzkdben) | *当前文档* |
| 工具组件 | 基于组件 SDK,可调用包括大模型组件、AI能力组件等在内的多种组件 | [组件SDK](https://cloud.baidu.com/doc/AppBuilder/s/Glqb6dfiz) | [组件列表](../appbuilder/core/components) |
| 工具组件 | 基于组件 SDK,可调用包括大模型组件、AI能力组件等在内的多种组件 | [组件SDK](https://cloud.baidu.com/doc/AppBuilder/s/Glqb6dfiz) | [组件列表](/appbuilder/core/components/) |

Assistants API/SDK 正在内测中,敬请期待公测版本。

Expand Down Expand Up @@ -292,5 +292,5 @@ msg_files = appbuilder.assistant.threads.messages.files(
## 进阶用法

- [Assistant SDK 数据类型文档](./assistant_type.md)
- [Assistant SDK 基础能力CookBook](../cookbooks/assistant_function_call.ipynb)
- [Assistant SDK 基础能力CookBook](/cookbooks/pipeline/assistant_function_call.ipynb)

7 changes: 6 additions & 1 deletion docs/quick_start/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,9 @@
* **2024.04.30 v0.7.0版本发布** [ReleaseNote](https://github.com/baidubce/app-builder/releases/tag/0.7.0)
* 提供Assistant SDK 功能,新增 [CookBook](/cookbooks/pipeline/assistant_function_call.ipynb),包含流程编排与FunctionCall,搭建个性化Agent应用
* AgentBuilder组件更名为 AppBuilderClient, 后续版本将放弃对 `AgentBuilder` 的后向兼容支持
* 首页Readme与文档结构优化
* 首页Readme与文档结构优化
* **2024.05.21 v0.7.1版本发布** [ReleaseNote](https://github.com/baidubce/app-builder/releases/tag/0.7.1)
* 更新Assistant SDK 功能,为assistants/threads/messages/runs/files模块提供了完整的增删改查api, 新增`appbuilder.AssistantEventHandler``appbuilder.assistant.threads.runs.stream_run_with_handler`方法,更好的支持Assistant的流式调用
* 支持AppBuilder Client通过chainlit进行可视化的服务化部署
* 优化SDK的报错信息提示,方便开发者进行debug
* 修复文档格式转换组件的域名错误问题
2 changes: 1 addition & 1 deletion go/appbuilder/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (t *SDKConfig) AuthHeaderV2() http.Header {
func (t *SDKConfig) authHeader() http.Header {
header := make(http.Header)
header.Set("X-Appbuilder-Origin", "appbuilder_sdk")
header.Set("X-Appbuilder-Sdk-Config", "{\"appbuilder_sdk_version\":\"0.7.0\",\"appbuilder_sdk_language\":\"go\"}")
header.Set("X-Appbuilder-Sdk-Config", "{\"appbuilder_sdk_version\":\"0.7.1\",\"appbuilder_sdk_language\":\"go\"}")
header.Set("X-Appbuilder-Request-Id", uuid.New().String())
return header
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public ClassicHttpRequest createPostRequest(String url, HttpEntity entity) {
httpPost.setHeader("X-Appbuilder-Authorization", this.SecretKey);
httpPost.setHeader("X-Appbuilder-Origin", "appbuilder_sdk");
httpPost.setHeader("X-Appbuilder-Sdk-Config",
"{\"appbuilder_sdk_version\":\"0.7.0\",\"appbuilder_sdk_language\":\"java\"}");
"{\"appbuilder_sdk_version\":\"0.7.1\",\"appbuilder_sdk_language\":\"java\"}");
httpPost.setHeader("X-Appbuilder-Request-Id", java.util.UUID.randomUUID().toString());
httpPost.setEntity(entity);
return httpPost;
Expand All @@ -66,7 +66,7 @@ public ClassicHttpRequest createPostRequestV2(String url, HttpEntity entity) {
HttpPost httpPost = new HttpPost(requestURL);
httpPost.setHeader("Authorization", this.SecretKey);
httpPost.setHeader("X-Appbuilder-Origin", "appbuilder_sdk");
httpPost.setHeader("X-Appbuilder-Sdk-Config", "{\"appbuilder_sdk_version\":\"0.7.0\",\"appbuilder_sdk_language\":\"java\"}");
httpPost.setHeader("X-Appbuilder-Sdk-Config", "{\"appbuilder_sdk_version\":\"0.7.1\",\"appbuilder_sdk_language\":\"java\"}");
httpPost.setHeader("X-Appbuilder-Request-Id", java.util.UUID.randomUUID().toString());
httpPost.setEntity(entity);
return httpPost;
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

setup(
name='appbuilder-sdk',
version='0.7.0', #NOTE(chengmo): 修改此版本号时,请注意同时修改 __init__.py 中的 __version__
version='0.7.1', #NOTE(chengmo): 修改此版本号时,请注意同时修改 __init__.py 中的 __version__
author='dongdaxiang',
author_email='dongdaxiang@baidu.com',
packages=find_packages(),
Expand Down

0 comments on commit e1a08f7

Please sign in to comment.