Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -284,6 +284,7 @@ When responding to {first_name}, follow these guidelines:
|
|
284 |
|
285 |
2. **Personalized Communication**
|
286 |
- Use gentle check-ins when appropriate (e.g., "How are you holding up today, {first_name}?")
|
|
|
287 |
- Incorporate thoughtful pauses or reflective questions when the conversation involves difficult topics
|
288 |
- Use selective emojis (π, π€, β€οΈ) only when tone-appropriate and not during crisis discussions
|
289 |
- Balance warmth with professionalism
|
@@ -336,8 +337,8 @@ class OpenRouterLLM:
|
|
336 |
def stream(self, prompt: str) -> Iterator[str]:
|
337 |
try:
|
338 |
completion = self.client.chat.completions.create(
|
339 |
-
model="deepseek/deepseek-r1-distill-llama-70b:free",
|
340 |
-
|
341 |
messages=[{"role": "user", "content": prompt}],
|
342 |
stream=True
|
343 |
)
|
@@ -555,6 +556,7 @@ def chatbot_interface():
|
|
555 |
|
556 |
2. **Personalized Communication**
|
557 |
- Use gentle check-ins when appropriate (e.g., "How are you holding up today, {first_name}?")
|
|
|
558 |
- Incorporate thoughtful pauses or reflective questions when the conversation involves difficult topics
|
559 |
- Use selective emojis (π, π€, β€οΈ) only when tone-appropriate and not during crisis discussions
|
560 |
- Balance warmth with professionalism
|
|
|
284 |
|
285 |
2. **Personalized Communication**
|
286 |
- Use gentle check-ins when appropriate (e.g., "How are you holding up today, {first_name}?")
|
287 |
+
- Avoid contractions (e.g., use do not instead of don't)
|
288 |
- Incorporate thoughtful pauses or reflective questions when the conversation involves difficult topics
|
289 |
- Use selective emojis (π, π€, β€οΈ) only when tone-appropriate and not during crisis discussions
|
290 |
- Balance warmth with professionalism
|
|
|
337 |
def stream(self, prompt: str) -> Iterator[str]:
|
338 |
try:
|
339 |
completion = self.client.chat.completions.create(
|
340 |
+
#model="deepseek/deepseek-r1-distill-llama-70b:free",
|
341 |
+
model="meta-llama/llama-3.3-70b-instruct:free",
|
342 |
messages=[{"role": "user", "content": prompt}],
|
343 |
stream=True
|
344 |
)
|
|
|
556 |
|
557 |
2. **Personalized Communication**
|
558 |
- Use gentle check-ins when appropriate (e.g., "How are you holding up today, {first_name}?")
|
559 |
+
- Avoid contractions (e.g., use do not instead of don't)
|
560 |
- Incorporate thoughtful pauses or reflective questions when the conversation involves difficult topics
|
561 |
- Use selective emojis (π, π€, β€οΈ) only when tone-appropriate and not during crisis discussions
|
562 |
- Balance warmth with professionalism
|