The Fisrt Updated
This commit is contained in:
15
test copy.py
Normal file
15
test copy.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from openai import OpenAI
|
||||
|
||||
|
||||
client = OpenAI(api_key="sk-F9OLC5dSwNYB9n8g374fA0D642984246Be6cAd2cC9B61090", base_url="https://free.v36.cm")
|
||||
response = client.chat.completions.create(
|
||||
model="deepseek-chat",
|
||||
messages=[
|
||||
{"role": "system", "content": "You are a helpful assistant"},
|
||||
{"role": "user", "content": "你好"},
|
||||
],
|
||||
stream=False
|
||||
)
|
||||
|
||||
print(response)
|
||||
print(response.choices[0].message.content)
|
||||
Reference in New Issue
Block a user