Update runway_openai.py
Browse files- runway_openai.py +15 -0
runway_openai.py
CHANGED
@@ -1,3 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import requests
|
2 |
|
3 |
# 设置 API 密钥和请求的 URL
|
|
|
1 |
+
"""
|
2 |
+
curl -X GET http://localhost:7680/api/models
|
3 |
+
|
4 |
+
curl -X POST https://sanbo1200-degpt.hf.space/hf/v1/chat/completions \
|
5 |
+
-H "Content-Type: application/json" \
|
6 |
+
-d '{
|
7 |
+
"model": "Qwen2.5-72B",
|
8 |
+
"messages": [
|
9 |
+
{"role": "system", "content": "You are a helpful assistant."},
|
10 |
+
{"role": "user", "content": "你是什么模型,你有什么特点?"}
|
11 |
+
]
|
12 |
+
}'
|
13 |
+
|
14 |
+
|
15 |
+
"""
|
16 |
import requests
|
17 |
|
18 |
# 设置 API 密钥和请求的 URL
|