Skip to content

Commit

Permalink
Merge branch 'feature/attachments-remove' of github.com:Rain120/x int…
Browse files Browse the repository at this point in the history
…o feature/attachments-remove
  • Loading branch information
Rain120 committed Jan 10, 2025
2 parents 4e53b58 + 4b089da commit b4ead18
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Binary file modified bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions components/x-request/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ cover: https://mdn.alipayobjects.com/huamei_iwk9zp/afts/img/A*22A2Qqn7OrEAAAAAAA
coverDark: https://mdn.alipayobjects.com/huamei_iwk9zp/afts/img/A*lQydTrtLz9YAAAAAAAAAAAAADgCCAQ/original
---

## When To Use
## 何时使用

- 向符合 OpenAI 标准的 LLM 发起请求。

## Examples
## 代码演示

<!-- prettier-ignore -->
<code src="./demo/basic.tsx">基础</code>
Expand Down
6 changes: 3 additions & 3 deletions components/x-stream/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ cover: https://mdn.alipayobjects.com/huamei_iwk9zp/afts/img/A*OD9kTJOmGdsAAAAAAA
coverDark: https://mdn.alipayobjects.com/huamei_iwk9zp/afts/img/A*PxJISo5t2YgAAAAAAAAAAAAADgCCAQ/original
---

## When To Use
## 何时使用

- 将 SSE 协议的 `ReadableStream` 转换为 `Record`
- 将任何协议的 `ReadableStream` 解码并读取

## Use
## 使用说明

常见的 `ReadableStream` 实例,如 `await fetch(...).body` 使用示例:

Expand All @@ -37,7 +37,7 @@ async function request() {
}
```

## Examples
## 代码演示

<code src="./demo/default-protocol.tsx">默认协议 - SSE</code> <code src="./demo/custom-protocol.tsx">自定义协议</code>

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
"jest-image-snapshot": "^6.4.0",
"jest-puppeteer": "^11.0.0",
"jquery": "^3.7.1",
"jsdom": "^25.0.0",
"jsdom": "^26.0.0",
"jsonml-to-react-element": "^1.1.11",
"jsonml.js": "^0.1.0",
"lint-staged": "^15.2.10",
Expand Down

0 comments on commit b4ead18

Please sign in to comment.