Skip to content

Commit

Permalink
Fix vertex ai response parsing bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
eli64s committed Mar 1, 2024
1 parent 45068eb commit 3afc418
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "readmeai"
version = "0.5.069"
version = "0.5.070"
description = "馃懢 Automated README file generator, powered by LLM APIs."
authors = ["Eli <egsalamie@gmail.com>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion readmeai/models/vertex.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ async def _make_request(
prompt,
generation_config=data,
)
content = response.text if response.text else response
content = response.candidates[0].content.parts[0].text
self._logger.info(f"Response for '{index}':\n{content}")
return index, clean_response(index, content)

Expand Down

0 comments on commit 3afc418

Please sign in to comment.