Delete test copy.py
This commit is contained in:
15
test copy.py
15
test copy.py
@@ -1,15 +0,0 @@
|
|||||||
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