Skip to content

Commit

Permalink
fix(pyright): Fix overlapping overloads (#1852)
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie authored Feb 12, 2025
1 parent c08d91a commit 4695a55
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions shiny/ui/_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ async def _raise_exception(
def messages(
self,
*,
format: Literal["anthropic"] = "anthropic",
format: Literal["anthropic"],
token_limits: tuple[int, int] | None = None,
transform_user: Literal["all", "last", "none"] = "all",
transform_assistant: bool = False,
Expand All @@ -350,7 +350,7 @@ def messages(
def messages(
self,
*,
format: Literal["google"] = "google",
format: Literal["google"],
token_limits: tuple[int, int] | None = None,
transform_user: Literal["all", "last", "none"] = "all",
transform_assistant: bool = False,
Expand All @@ -360,7 +360,7 @@ def messages(
def messages(
self,
*,
format: Literal["langchain"] = "langchain",
format: Literal["langchain"],
token_limits: tuple[int, int] | None = None,
transform_user: Literal["all", "last", "none"] = "all",
transform_assistant: bool = False,
Expand All @@ -370,7 +370,7 @@ def messages(
def messages(
self,
*,
format: Literal["openai"] = "openai",
format: Literal["openai"],
token_limits: tuple[int, int] | None = None,
transform_user: Literal["all", "last", "none"] = "all",
transform_assistant: bool = False,
Expand All @@ -380,7 +380,7 @@ def messages(
def messages(
self,
*,
format: Literal["ollama"] = "ollama",
format: Literal["ollama"],
token_limits: tuple[int, int] | None = None,
transform_user: Literal["all", "last", "none"] = "all",
transform_assistant: bool = False,
Expand Down

0 comments on commit 4695a55

Please sign in to comment.