From 9b1e72047027acd7aaf492a3cd203868eb9dee3c Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Wed, 13 Nov 2024 12:01:47 -0800 Subject: [PATCH] Removed obsolete response() method --- llm/models.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/llm/models.py b/llm/models.py index 0437d17b..3ed61bf3 100644 --- a/llm/models.py +++ b/llm/models.py @@ -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: @@ -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