From 3974e4dcaa0a3e3ff2c5364b5819779aa56380c3 Mon Sep 17 00:00:00 2001 From: drbh Date: Wed, 14 Feb 2024 00:36:08 +0000 Subject: [PATCH] fix: adjust next type typo --- clients/python/text_generation/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/python/text_generation/client.py b/clients/python/text_generation/client.py index 5afe5dfe..bbccbf1d 100644 --- a/clients/python/text_generation/client.py +++ b/clients/python/text_generation/client.py @@ -172,7 +172,7 @@ class Client: typical_p: Optional[float] = None, watermark: bool = False, top_n_tokens: Optional[int] = None, - grammar: Grammar = "", + grammar: Optional[Grammar] = None, ) -> Iterator[StreamResponse]: """ Given a prompt, generate the following stream of tokens