poc: adds comment, changes to fstring
This commit is contained in:
parent
d25b3965b9
commit
b5a36de644
2 changed files with 4 additions and 1 deletions
|
|
@ -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}")
|
||||
|
|
|
|||
|
|
@ -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 model’s SDK.
|
||||
"""
|
||||
_input = None
|
||||
if isinstance(request, CodeReviewRequest):
|
||||
return [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue