Skip to content

Commit

Permalink
Removed obsolete response() method
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Nov 13, 2024
1 parent c4a7583 commit 9b1e720
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions llm/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,9 +552,6 @@ def prompt(
stream,
)

def response(self, prompt: Prompt, stream: bool = True) -> "Response":
return Response(prompt, self, stream)


class AsyncModel(_BaseModel):
def conversation(self) -> AsyncConversation:
Expand Down Expand Up @@ -592,9 +589,6 @@ def prompt(
stream,
)

def response(self, prompt: Prompt, stream: bool = True) -> "AsyncResponse":
return AsyncResponse(prompt, self, stream)


class EmbeddingModel(ABC, _get_key_mixin):
model_id: str
Expand Down

0 comments on commit 9b1e720

Please sign in to comment.