Skip to content

Commit

Permalink
Merge branch 'feat/AGE-1430-new-playground' of https://github.com/Age…
Browse files Browse the repository at this point in the history
…nta-AI/agenta into feat/AGE-1430-new-playground
  • Loading branch information
mmabrouk committed Dec 13, 2024
2 parents 0a35746 + 182eaa0 commit ce9a740
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
8 changes: 7 additions & 1 deletion agenta-cli/agenta/sdk/decorators/routing.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,13 @@ async def run_wrapper(request: Request, *args, **kwargs) -> Any:
}
# LEGACY

kwargs, config = self.process_kwargs(kwargs, default_parameters)
kwargs, _ = self.process_kwargs(kwargs, default_parameters)
if request.state.config["parameters"] is None:
raise HTTPException(
status_code=400,
detail="Config not found based on provided references.",
)


return await self.execute_wrapper(request, False, *args, **kwargs)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,12 @@ async def run_wrapper(request: Request, *args, **kwargs) -> Any:
}
# LEGACY

if request.state.config["parameters"] is None:
raise HTTPException(
status_code=400,
detail="Config not found based on provided references.",
)

kwargs, _ = self.split_kwargs(kwargs, default_parameters)

# TODO: Why is this not used in the run_wrapper?
Expand Down

0 comments on commit ce9a740

Please sign in to comment.