https://github.com/qiaopengjun5162/llm-sdk
https://github.com/qiaopengjun5162/llm-sdk
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/qiaopengjun5162/llm-sdk
- Owner: qiaopengjun5162
- Created: 2023-11-28T15:18:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-01T18:11:18.000Z (over 1 year ago)
- Last Synced: 2023-12-01T19:28:17.380Z (over 1 year ago)
- Language: Rust
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
---
runme:
id: 01HGB9JTRBDTG3Y375Q4M8TJD6
version: v2.0
---# llm-sdk 用 Rust 创建 OpenAI SDK
## 实操
```shell {"id":"01HG8S9S31CJJQZT5CEBJRFN1N"}
cargo add reqwest --features rustls-tls --no-default-features --features json --features gzipcargo add tokio --features rt --features rt-multi-thread --features macros --dev
cargo add anyhow
cargo add serde --features derive
cargo add serde_json
cargo add derive_builder
cargo nextest run -- create_image_request_shoud_serialize
cargo nextest run -- create_image_request_custom_shoud_serialize
mkdir /tmp/llm-sdk
cargo nextest run -- create_image_should_work -- --nocapture
open /tmp/llm-sdk/caterpillar.png
cargo install git-cliff
git cliff --init
git cliff -o CHANGELOG.md```