https://github.com/freedomintelligence/llmzoo-api-sdk
https://github.com/freedomintelligence/llmzoo-api-sdk
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/freedomintelligence/llmzoo-api-sdk
- Owner: FreedomIntelligence
- Created: 2023-05-11T11:14:04.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-04T08:38:31.000Z (almost 3 years ago)
- Last Synced: 2025-01-18T08:38:35.558Z (over 1 year ago)
- Language: Python
- Size: 26.4 KB
- Stars: 3
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LLMZOO-API-SDK
### how to install
```
pip install git+https://github.com/FreedomIntelligence/LLMZOO-API-SDK.git
```
### how to use
```
from llmzoo import Model
model = Model("phoenix", ip ="0.0.0.0")
print(model.response("肚子饿了怎么办?"))
```
you can acess the IP via [here](https://eegb6fzscd.feishu.cn/wiki/QSEqwhsEMiQnZakL88cc8SaCnNd), or ask `wangbenyou@cuhk.edu.cn` for the IP
### if you would like to chat with a given history, you could try
```
history = [ ("肚子疼怎么办?", "保持休息。如果您的腹痛是由于消化问题引起的,那么您需要多休息以减轻症状并促进康复。如果情况严重的话,建议您立即就医。此外,保持良好的睡眠也有助于缓解胃肠不适的症状。")]
print(model.response("肚子饿了怎么办?", history= history))
```
### Other than `phoenix` you could also use the following models
- `flamingo`
- `huatuo`
- `chimera`
- `phoenix`