Spaces:
Sleeping
Sleeping
Update Web/backend/main.py
Browse files- Web/backend/main.py +10 -10
Web/backend/main.py
CHANGED
|
@@ -283,9 +283,9 @@ async def detect_distortion(request: DetectionRequest):
|
|
| 283 |
dot_analysis = await client.post(
|
| 284 |
f"{API_base}prompts/templates/execute",
|
| 285 |
json={
|
| 286 |
-
"provider": "
|
| 287 |
"template_name": "dot.analysis",
|
| 288 |
-
"model": "
|
| 289 |
"variables": {
|
| 290 |
"situation": request.situation,
|
| 291 |
"thought": request.thought
|
|
@@ -305,9 +305,9 @@ async def detect_distortion(request: DetectionRequest):
|
|
| 305 |
dot_detection = await client.post(
|
| 306 |
f"{API_base}prompts/templates/execute",
|
| 307 |
json={
|
| 308 |
-
"provider": "
|
| 309 |
"template_name": "dot.detection",
|
| 310 |
-
"model": "
|
| 311 |
"variables": {
|
| 312 |
"situation": request.situation,
|
| 313 |
"thought": request.thought,
|
|
@@ -393,9 +393,9 @@ async def analyze_thought(request: AnalyzeRequest):
|
|
| 393 |
thera_rcm = await client.post(
|
| 394 |
f"{API_base}prompts/templates/execute",
|
| 395 |
json={
|
| 396 |
-
"provider": "
|
| 397 |
"template_name": "dot.thera_rcm",
|
| 398 |
-
"model": "
|
| 399 |
"variables": {
|
| 400 |
"situation": request.situation,
|
| 401 |
"thought": request.thought,
|
|
@@ -503,9 +503,9 @@ async def generate_reframe(request: ReframeRequest):
|
|
| 503 |
response = await client.post(
|
| 504 |
f"{API_base}prompts/templates/execute",
|
| 505 |
json={
|
| 506 |
-
"provider": "
|
| 507 |
"template_name": f"reframe.{therapy.lower()}",
|
| 508 |
-
"model": "
|
| 509 |
"variables": {
|
| 510 |
"situation": request.situation,
|
| 511 |
"thought": request.thought,
|
|
@@ -531,9 +531,9 @@ async def generate_reframe(request: ReframeRequest):
|
|
| 531 |
feedback = await client.post(
|
| 532 |
f"{API_base}prompts/templates/execute",
|
| 533 |
json={
|
| 534 |
-
"provider": "
|
| 535 |
"template_name": f"dot.thera_supervisor",
|
| 536 |
-
"model": "
|
| 537 |
"variables": {
|
| 538 |
"situation": request.situation,
|
| 539 |
"thought": request.thought,
|
|
|
|
| 283 |
dot_analysis = await client.post(
|
| 284 |
f"{API_base}prompts/templates/execute",
|
| 285 |
json={
|
| 286 |
+
"provider": "openai",
|
| 287 |
"template_name": "dot.analysis",
|
| 288 |
+
"model": "gpt-4.1",
|
| 289 |
"variables": {
|
| 290 |
"situation": request.situation,
|
| 291 |
"thought": request.thought
|
|
|
|
| 305 |
dot_detection = await client.post(
|
| 306 |
f"{API_base}prompts/templates/execute",
|
| 307 |
json={
|
| 308 |
+
"provider": "openai",
|
| 309 |
"template_name": "dot.detection",
|
| 310 |
+
"model": "gpt-4.1",
|
| 311 |
"variables": {
|
| 312 |
"situation": request.situation,
|
| 313 |
"thought": request.thought,
|
|
|
|
| 393 |
thera_rcm = await client.post(
|
| 394 |
f"{API_base}prompts/templates/execute",
|
| 395 |
json={
|
| 396 |
+
"provider": "openai",
|
| 397 |
"template_name": "dot.thera_rcm",
|
| 398 |
+
"model": "gpt-4.1",
|
| 399 |
"variables": {
|
| 400 |
"situation": request.situation,
|
| 401 |
"thought": request.thought,
|
|
|
|
| 503 |
response = await client.post(
|
| 504 |
f"{API_base}prompts/templates/execute",
|
| 505 |
json={
|
| 506 |
+
"provider": "openai",
|
| 507 |
"template_name": f"reframe.{therapy.lower()}",
|
| 508 |
+
"model": "gpt-4.1",
|
| 509 |
"variables": {
|
| 510 |
"situation": request.situation,
|
| 511 |
"thought": request.thought,
|
|
|
|
| 531 |
feedback = await client.post(
|
| 532 |
f"{API_base}prompts/templates/execute",
|
| 533 |
json={
|
| 534 |
+
"provider": "openai",
|
| 535 |
"template_name": f"dot.thera_supervisor",
|
| 536 |
+
"model": "gpt-4.1",
|
| 537 |
"variables": {
|
| 538 |
"situation": request.situation,
|
| 539 |
"thought": request.thought,
|