poc: adds comment, changes to fstring

This commit is contained in:
ievgenii vdovenko 2025-09-15 11:47:49 +02:00
parent d25b3965b9
commit b5a36de644
2 changed files with 4 additions and 1 deletions

View file

@ -34,4 +34,4 @@ def get_ai_service(api_key: str, model_name: str = AIModelName.GPT.name, version
)
)
except KeyError as ke:
raise ValueError("Unknown model or version: %s" % ke)
raise ValueError(f"Unknown model or version: {ke}")

View file

@ -145,6 +145,9 @@ class AIServiceBase:
return "\n".join(parts).rstrip()
def _get_response_input(self, request: PingRequest | CodeReviewRequest) -> list[dict[str, str]]:
"""
It extracts data from internal data classes and transforms it into an input value suitable for the models SDK.
"""
_input = None
if isinstance(request, CodeReviewRequest):
return [