stream defaults to True on prompt() method

This commit is contained in:
Simon Willison 2023-07-04 08:14:00 -07:00
parent 49e4d688c6
commit bc8dad1e33

View file

@ -148,12 +148,12 @@ class Model(ABC):
self,
prompt: Optional[str],
system: Optional[str] = None,
stream: bool = False,
stream: bool = True,
**options
):
return self.execute(
Prompt(prompt, system=system, model=self, options=self.Options(**options)),
stream=False,
stream=stream,
)
@abstractmethod