issue #23 - fixing issues from integration test, part 3

This commit is contained in:
Stanislav Hejny
2025-05-29 01:05:05 +01:00
parent 59e04300b0
commit 5261b1f959
17 changed files with 290 additions and 105 deletions
+2 -2
View File
@@ -24,7 +24,7 @@ from amqp.service.amq_service import AMQService
class BRAGArgument:
"""
This class is used to represent a BRAG API input argument. It is uses FastAPI annotation to define the arguments
(the argument type_string) that are passed as input arguments to the BRAG endpoint.
(the argument type) that are passed as input arguments to the BRAG endpoint.
"""
def __init__(self, arg: Any):
@@ -88,7 +88,7 @@ def convert_to_argument(arg: BRAGArgument, value: str) -> Any:
elif arg.is_base_model:
return arg.arg.parse_raw(value)
else:
print(f"Unsupported argument type_string: {type(arg)}")
print(f"Unsupported argument type: {type(arg)}")
except Exception as e:
print(f"Error converting argument {arg}: {e}")
return None