Skip to content

Commit

Permalink
fix: returning .value for Enum class
Browse files Browse the repository at this point in the history
  • Loading branch information
csgulati09 committed Dec 16, 2024
1 parent fc75083 commit fbccb24
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions portkey_ai/api_resources/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ class PortkeyApiPaths(str, Enum, metaclass=MetaEnum):
LOGS_EXPORT_API = "/logs/exports"
LOGS_API = "/logs"

def __str__(self):
return self.value


class Options(BaseModel):
method: str
Expand Down

0 comments on commit fbccb24

Please sign in to comment.