Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
EyalPazz committed Jul 14, 2023
1 parent 31c1f19 commit c5b3859
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llm_client/llm_api_client/google_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ async def text_completion(self, prompt: str, model: Optional[str] = None, max_to
model = model or self._default_model
kwargs[PROMPT_KEY] = {TEXT_KEY: prompt}
kwargs[MAX_TOKENS_KEY] = kwargs.pop(MAX_TOKENS_KEY, max_tokens)
if top_p or ("topP" in kwargs):
kwargs["topP"] = kwargs.pop("topP", top_p)
if top_p:
kwargs["topP"] = top_p
kwargs["temperature"] = kwargs.pop("temperature", temperature)
response = await self._session.post(self._base_url + model + ":" + COMPLETE_PATH,
params=self._params,
Expand Down

0 comments on commit c5b3859

Please sign in to comment.