Spaces:
Sleeping
Sleeping
David Prince commited on
Commit ·
9348ecf
1
Parent(s): cce8120
fix: agent/run calls gateway.complete() not gateway.generate()
Browse files- app_routes_extension.py +1 -2
app_routes_extension.py
CHANGED
|
@@ -99,10 +99,9 @@ async def agent_run(body: AgentRunRequest) -> dict[str, Any]:
|
|
| 99 |
try:
|
| 100 |
from backend.llm.gateway import ModelGateway
|
| 101 |
gateway = ModelGateway()
|
| 102 |
-
result = await gateway.
|
| 103 |
prompt=body.message,
|
| 104 |
intent="agent",
|
| 105 |
-
model_hint=body.model,
|
| 106 |
)
|
| 107 |
return {
|
| 108 |
"response": result,
|
|
|
|
| 99 |
try:
|
| 100 |
from backend.llm.gateway import ModelGateway
|
| 101 |
gateway = ModelGateway()
|
| 102 |
+
result = await gateway.complete(
|
| 103 |
prompt=body.message,
|
| 104 |
intent="agent",
|
|
|
|
| 105 |
)
|
| 106 |
return {
|
| 107 |
"response": result,
|