fix: Import call_openrouter from routers.prompts instead of non-existent openrouter module
This commit is contained in:
parent
1f8791f4dd
commit
ce4666a535
|
|
@ -61,7 +61,7 @@ async def execute_workflow_endpoint(
|
|||
}
|
||||
"""
|
||||
from prompt_executor import execute_workflow_prompt
|
||||
from openrouter import call_openrouter_async
|
||||
from routers.prompts import call_openrouter
|
||||
|
||||
profile_id = session["profile_id"]
|
||||
|
||||
|
|
@ -90,7 +90,7 @@ async def execute_workflow_endpoint(
|
|||
result = await execute_workflow_prompt(
|
||||
prompt=workflow_prompt,
|
||||
variables=variables,
|
||||
openrouter_call_func=call_openrouter_async,
|
||||
openrouter_call_func=call_openrouter,
|
||||
enable_debug=request.enable_debug
|
||||
)
|
||||
return result
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user