You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1006 B
40 lines
1006 B
![]()
8 months ago
|
# gpt 平替接口
|
||
|
|
||
|
请求示例:
|
||
|
```
|
||
|
requests.post("http://101.37.83.210:12004",
|
||
|
headers=headers,
|
||
|
data=json.dumps({
|
||
|
"model": "gpt-4-turbo-preview",
|
||
|
"messages": [
|
||
|
{"role": "user", "content": "你好"},
|
||
|
{"role": "assistant", "content": "你好!有什么我可以帮助你的吗?"},
|
||
|
{"role": "user", "content": prompt}
|
||
|
],
|
||
|
"top_p": 0.9,
|
||
|
"temperature": 0.95,
|
||
|
}),
|
||
|
timeout=1200)
|
||
|
```
|
||
|
|
||
|
|
||
|
# gpt 生成论文接口
|
||
|
|
||
|
请求示例:
|
||
|
```
|
||
|
requests.post("http://101.37.83.210:12005",
|
||
|
headers=headers,
|
||
|
data=json.dumps({
|
||
|
"model": "gpt-4-turbo-preview",
|
||
|
"messages": [
|
||
|
{"role": "user", "content": "你好"},
|
||
|
{"role": "assistant", "content": "你好!有什么我可以帮助你的吗?"},
|
||
|
{"role": "user", "content": prompt}
|
||
|
],
|
||
|
"top_p": 0.9,
|
||
|
"temperature": 0.95,
|
||
|
"table_and_formulas": "1,2"
|
||
|
}),
|
||
|
timeout=1200)
|
||
|
```
|