-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
42 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Dify Client | ||
|
||
The Dify Client is a Rust library for interacting with the Dify service. It provides a convenient way to integrate Dify functionality into your Rust applications. | ||
|
||
## Installation | ||
|
||
To add `dify-client` to your package, add the following to your `Cargo.toml`: | ||
|
||
```toml | ||
[dependencies] | ||
dify-client = "0.1" | ||
``` | ||
|
||
## Test | ||
|
||
To run the tests, you need to set the `DIFY_API_KEY` and `DIFY_BASE_URL` environment variables. | ||
|
||
```bash | ||
export DIFY_API_KEY=your_api_key | ||
export DIFY_BASE_URL=https://api.dify.io | ||
``` | ||
|
||
Then you can run the tests with: | ||
|
||
```sh | ||
cargo test | ||
# cargo test -- --nocapture | ||
# cargo test test_feedback_message -- --nocapture | ||
``` | ||
|
||
## Docs | ||
|
||
To generate the documentation, run: | ||
|
||
```sh | ||
# cargo clean --doc | ||
cargo doc --no-deps --lib --document-private-items --open | ||
``` |