Skip to content
This repository was archived by the owner on Jun 12, 2024. It is now read-only.

Commit cd9997e

Browse files
committed
chore: fix typo and simplified exceptions
1 parent 9050a0c commit cd9997e

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed
File renamed without changes.

gemini/src/model/exceptions.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
1-
class AuthError(Exception):
1+
class PackageError(Exception):
22
"""Invalid credentials/cookies."""
33

44
pass
55

66

7-
class APIError(Exception):
8-
"""Package-level error."""
9-
10-
pass
11-
12-
13-
class GeminiError(Exception):
7+
class GeminiAPIError(Exception):
148
"""Unhandled server error."""
159

1610
pass
1711

1812

19-
class TimeoutError(GeminiError):
13+
class TimeoutError(GeminiAPIError):
2014
"""Request timeout."""
2115

2216
pass

gemini/src/model/output.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class GeminiModelOutput(BaseModel):
2323

2424
@property
2525
def rcid(self) -> str:
26-
"""The RCID (Reversed-Cloze ID) of the chosen candidate."""
26+
"""The RCID (Response Choice ID) of the chosen candidate."""
2727
return self.candidates[self.chosen].rcid
2828

2929
@property

0 commit comments

Comments
 (0)