Skip to content

Commit 9095c65

Browse files
committed
fix(vefaas): fix mcp doc and streamable-http conflict
2 parents f90c4d2 + a45c420 commit 9095c65

File tree

4 files changed

+1461
-2
lines changed

4 files changed

+1461
-2
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ An open-source kit for agent development, integrated the powerful capabilities o
1111

1212
For more details, see our [documents](https://volcengine.github.io/veadk-python/).
1313

14+
A [tutorial](https://github.com/volcengine/veadk-python/blob/main/veadk_tutorial.ipynb) is available by Jupyter Notebook, or open it in [Google Colab](https://colab.research.google.com/github/volcengine/veadk-python/blob/main/veadk_tutorial.ipynb) directly.
15+
1416
## Installation
1517

1618
We use `uv` to build this project ([how-to-install-uv](https://docs.astral.sh/uv/getting-started/installation/)).

docs/docs/get-started.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# 快速开始
22

3+
我们提供了一个供您完整体验 VeADK 核心功能的[教程](https://github.com/volcengine/veadk-python/blob/main/veadk_tutorial.ipynb)(基于 Jupyter Notebook),或者您也可以直接在 [Google Colab](https://colab.research.google.com/github/volcengine/veadk-python/blob/main/veadk_tutorial.ipynb) 中打开。
4+
35
## 安装 VeADK
46

57
您可参考[安装](./installation.md)文档进行安装。

veadk/utils/misc.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# limitations under the License.
1414

1515
import time
16+
import requests
1617

1718

1819
def read_file(file_path):
@@ -28,6 +29,14 @@ def formatted_timestamp():
2829

2930

3031
def read_png_to_bytes(png_path: str) -> bytes:
31-
with open(png_path, "rb") as f:
32-
data = f.read()
32+
# Determine whether it is a local file or a network file
33+
if png_path.startswith(("http://", "https://")):
34+
# Network file: Download via URL and return bytes
35+
response = requests.get(png_path)
36+
response.raise_for_status() # Check if the HTTP request is successful
37+
return response.content
38+
else:
39+
# Local file
40+
with open(png_path, "rb") as f:
41+
data = f.read()
3342
return data

0 commit comments

Comments
 (0)