Skip to content

Commit

Permalink
Format updated generation_types and test using black.
Browse files Browse the repository at this point in the history
  • Loading branch information
Annhiluc committed Nov 26, 2024
1 parent acae3a2 commit 7bf8083
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion google/generativeai/types/generation_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ def prompt_feedback(self):
@property
def usage_metadata(self):
return self._result.usage_metadata

@property
def model_version(self):
return self._result.model_version
Expand Down
4 changes: 2 additions & 2 deletions tests/test_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ def test_join_chunks(self):
prompt_token_count=5
)

chunks[-1].model_version = 'gemini-1.5-flash-002'
chunks[-1].model_version = "gemini-1.5-flash-002"

result = generation_types._join_chunks(chunks)

Expand All @@ -511,7 +511,7 @@ def test_join_chunks(self):
],
},
"usage_metadata": {"prompt_token_count": 5},
"model_version": 'gemini-1.5-flash-002'
"model_version": "gemini-1.5-flash-002",
},
)

Expand Down

0 comments on commit 7bf8083

Please sign in to comment.