|
|
|
|
@ -3,6 +3,14 @@ A LangGenius App Service-API Client, using for build a webapp by request Service
|
|
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
|
|
First, install `langgenius-client` python sdk package:
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
pip install langgenius-client
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Write your code with sdk:
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
api_key = "your_api_key"
|
|
|
|
|
|
|
|
|
|
@ -31,4 +39,4 @@ print(conversations)
|
|
|
|
|
# Rename Conversation using ChatClient
|
|
|
|
|
rename_conversation_response = chat_client.rename_conversation(conversation_id="conversation_id", name="new_name", user="user_id")
|
|
|
|
|
print(rename_conversation_response)
|
|
|
|
|
```
|
|
|
|
|
```
|
|
|
|
|
|