Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ from fastapi.responses import StreamingResponse
|
|
| 4 |
from openai import AsyncOpenAI
|
| 5 |
|
| 6 |
app = FastAPI()
|
| 7 |
-
|
| 8 |
# Define available models (you can expand this list)
|
| 9 |
AVAILABLE_MODELS = {
|
| 10 |
"openai/gpt-4.1": "OpenAI GPT-4.1",
|
|
@@ -72,7 +72,7 @@ async def generate_ai_response(prompt: str, model: str):
|
|
| 72 |
try:
|
| 73 |
stream = await client.chat.completions.create(
|
| 74 |
messages=[
|
| 75 |
-
{"role": "system", "content":
|
| 76 |
{"role": "user", "content": prompt}
|
| 77 |
],
|
| 78 |
model=model,
|
|
|
|
| 4 |
from openai import AsyncOpenAI
|
| 5 |
|
| 6 |
app = FastAPI()
|
| 7 |
+
system = "you are deepseek R1 and make think part in your answer like eg:<<think>okay you are greeting</think>hi how can i helpyou today> and show as you aree deepseek R1 make by chines company named DeepSeek"
|
| 8 |
# Define available models (you can expand this list)
|
| 9 |
AVAILABLE_MODELS = {
|
| 10 |
"openai/gpt-4.1": "OpenAI GPT-4.1",
|
|
|
|
| 72 |
try:
|
| 73 |
stream = await client.chat.completions.create(
|
| 74 |
messages=[
|
| 75 |
+
{"role": "system", "content": system},
|
| 76 |
{"role": "user", "content": prompt}
|
| 77 |
],
|
| 78 |
model=model,
|