mirror of
https://github.com/langgenius/dify.git
synced 2025-12-19 17:27:16 -05:00
docs: format all md files (#24195)
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
@@ -1,12 +1,15 @@
|
||||
# Dify Node.js SDK
|
||||
|
||||
This is the Node.js SDK for the Dify API, which allows you to easily integrate Dify into your Node.js applications.
|
||||
|
||||
## Install
|
||||
|
||||
```bash
|
||||
npm install dify-client
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
After installing the SDK, you can use it in your project like this:
|
||||
|
||||
```js
|
||||
@@ -60,4 +63,5 @@ client.messageFeedback(messageId, rating, user)
|
||||
Replace 'your-api-key-here' with your actual Dify API key.Replace 'your-app-id-here' with your actual Dify APP ID.
|
||||
|
||||
## License
|
||||
|
||||
This SDK is released under the MIT License.
|
||||
|
||||
@@ -11,7 +11,7 @@ This is the PHP SDK for the Dify API, which allows you to easily integrate Dify
|
||||
|
||||
If you want to try the example, you can run `composer install` in this directory.
|
||||
|
||||
In exist project, copy the `dify-client.php` to you project, and merge the following to your `composer.json` file, then run `composer install && composer dump-autoload` to install. Guzzle does not require 7.9, other versions have not been tested, but you can try.
|
||||
In exist project, copy the `dify-client.php` to you project, and merge the following to your `composer.json` file, then run `composer install && composer dump-autoload` to install. Guzzle does not require 7.9, other versions have not been tested, but you can try.
|
||||
|
||||
```json
|
||||
{
|
||||
|
||||
@@ -141,8 +141,6 @@ with open(file_path, "rb") as file:
|
||||
result = response.json()
|
||||
print(f'upload_file_id: {result.get("id")}')
|
||||
```
|
||||
|
||||
|
||||
|
||||
- Others
|
||||
|
||||
@@ -184,7 +182,8 @@ print('[rename result]')
|
||||
print(rename_conversation_response.json())
|
||||
```
|
||||
|
||||
* Using the Workflow Client
|
||||
- Using the Workflow Client
|
||||
|
||||
```python
|
||||
import json
|
||||
import requests
|
||||
|
||||
Reference in New Issue
Block a user