Skip to content

Commit

Permalink
fix: linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
csgulati09 committed Jul 31, 2024
1 parent 68b0e65 commit 4bf1949
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions portkey_ai/api_resources/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ def copy(
cache_namespace=cache_namespace or self.cache_namespace,
http_client=http_client or self._client,
request_timeout=request_timeout or self.request_timeout,
strict_open_ai_compliance=strict_open_ai_compliance or self.strict_open_ai_compliance,
strict_open_ai_compliance=strict_open_ai_compliance
or self.strict_open_ai_compliance,
**self.kwargs,
**kwargs,
)
Expand Down Expand Up @@ -363,7 +364,8 @@ def copy(
cache_namespace=cache_namespace or self.cache_namespace,
http_client=http_client or self._client,
request_timeout=request_timeout or self.request_timeout,
strict_open_ai_compliance=strict_open_ai_compliance or self.strict_open_ai_compliance,
strict_open_ai_compliance=strict_open_ai_compliance
or self.strict_open_ai_compliance,
**self.kwargs,
**kwargs,
)
Expand Down
4 changes: 2 additions & 2 deletions portkey_ai/api_resources/types/chat_complete_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,14 @@ class ChoiceLogprobs(BaseModel, extra="allow"):
content: Optional[List[ChatCompletionTokenLogprob]] = None


class Choice(BaseModel, extra = "allow"):
class Choice(BaseModel, extra="allow"):
finish_reason: Optional[str]
index: Optional[int]
logprobs: Optional[ChoiceLogprobs] = None
message: Optional[ChatCompletionMessage]


class ChatCompletions(BaseModel, extra = "allow"):
class ChatCompletions(BaseModel, extra="allow"):
id: Optional[str]
choices: Optional[List[Choice]]
created: Optional[int]
Expand Down

0 comments on commit 4bf1949

Please sign in to comment.