You've already forked ModuleLLM-OpenAI-Plugin
mirror of
https://github.com/m5stack/ModuleLLM-OpenAI-Plugin.git
synced 2026-05-20 11:37:26 -07:00
Merge pull request #2 from nnn112358/dev
Fixes in README.md,requirements.txt
This commit is contained in:
@@ -12,7 +12,7 @@ pip install -r requirements.txt
|
||||
|
||||
3. Start the server:
|
||||
```bash
|
||||
python main.py
|
||||
python3 api_server.py
|
||||
```
|
||||
|
||||
## Supported Endpoints
|
||||
@@ -86,14 +86,15 @@ curl -X POST "http://localhost:8000/v1/chat/completions" \
|
||||
|
||||
### Speech Synthesis
|
||||
```bash
|
||||
curl -X POST "http://localhost:8000/v1/audio/speech" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer YOUR_KEY" \
|
||||
-d '{
|
||||
"model": "melotts",
|
||||
"input": "Hello world!",
|
||||
"voice": "alloy"
|
||||
}'
|
||||
curl -X POST "http://localhost:8001/v1/audio/speech" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer YOUR_KEY" \
|
||||
-d '{
|
||||
"model": "melotts_zh-cn",
|
||||
"input": "Hello world!",
|
||||
"voice": "alloy"
|
||||
}' \
|
||||
--output output.mp3
|
||||
```
|
||||
|
||||
## Required Libraries:
|
||||
|
||||
+2
-1
@@ -5,4 +5,5 @@ aiohttp
|
||||
pydub
|
||||
numpy
|
||||
python-multipart
|
||||
uvicorn
|
||||
uvicorn
|
||||
tiktoken
|
||||
|
||||
Reference in New Issue
Block a user