Skip to content

Commit

Permalink
chore(internal): minor restructuring (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot authored and rattrayalex committed Sep 12, 2023
1 parent c1a19ac commit 68eb3b2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/anthropic/resources/completions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from __future__ import annotations

from typing import List, overload
from typing import List, Union, overload
from typing_extensions import Literal

from ..types import Completion, completion_create_params
Expand All @@ -21,7 +21,7 @@ def create(
self,
*,
max_tokens_to_sample: int,
model: str | Literal["claude-2", "claude-instant-1"],
model: Union[str, Literal["claude-2", "claude-instant-1"]],
prompt: str,
metadata: completion_create_params.CompletionRequestNonStreamingMetadata | NotGiven = NOT_GIVEN,
stop_sequences: List[str] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -113,7 +113,7 @@ def create(
self,
*,
max_tokens_to_sample: int,
model: str | Literal["claude-2", "claude-instant-1"],
model: Union[str, Literal["claude-2", "claude-instant-1"]],
prompt: str,
stream: Literal[True],
metadata: completion_create_params.CompletionRequestStreamingMetadata | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -205,7 +205,7 @@ def create(
self,
*,
max_tokens_to_sample: int,
model: str | Literal["claude-2", "claude-instant-1"],
model: Union[str, Literal["claude-2", "claude-instant-1"]],
prompt: str,
metadata: completion_create_params.CompletionRequestNonStreamingMetadata | NotGiven = NOT_GIVEN,
stop_sequences: List[str] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -251,7 +251,7 @@ async def create(
self,
*,
max_tokens_to_sample: int,
model: str | Literal["claude-2", "claude-instant-1"],
model: Union[str, Literal["claude-2", "claude-instant-1"]],
prompt: str,
metadata: completion_create_params.CompletionRequestNonStreamingMetadata | NotGiven = NOT_GIVEN,
stop_sequences: List[str] | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -343,7 +343,7 @@ async def create(
self,
*,
max_tokens_to_sample: int,
model: str | Literal["claude-2", "claude-instant-1"],
model: Union[str, Literal["claude-2", "claude-instant-1"]],
prompt: str,
stream: Literal[True],
metadata: completion_create_params.CompletionRequestStreamingMetadata | NotGiven = NOT_GIVEN,
Expand Down Expand Up @@ -435,7 +435,7 @@ async def create(
self,
*,
max_tokens_to_sample: int,
model: str | Literal["claude-2", "claude-instant-1"],
model: Union[str, Literal["claude-2", "claude-instant-1"]],
prompt: str,
metadata: completion_create_params.CompletionRequestNonStreamingMetadata | NotGiven = NOT_GIVEN,
stop_sequences: List[str] | NotGiven = NOT_GIVEN,
Expand Down

0 comments on commit 68eb3b2

Please sign in to comment.