Skip to content

Commit bcc269f

Browse files
committed
Remove extra
1 parent 67e21c6 commit bcc269f

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

guidance/models/_model.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,9 @@ def __call__(self, parser, grammar, ensure_bos_token=True):
754754
response_new_token_count,
755755
) = response_state
756756

757-
print(f"{response_is_generated=} {response_new_token_count=} {response_new_bytes=}")
757+
print(
758+
f"{response_is_generated=} {response_new_token_count=} {response_new_bytes=}"
759+
)
758760

759761
yield EngineCallResponse(
760762
new_bytes=response_new_bytes,
@@ -931,12 +933,6 @@ def __init__(self, engine, echo=True, **kwargs):
931933
def reset_metrics(self):
932934
self.engine_metrics = GuidanceEngineMetrics()
933935

934-
@property
935-
def current_token_count(self) -> int:
936-
current_string = str(self)
937-
current_tokens = self.engine.tokenizer(current_string)
938-
return len(current_tokens)
939-
940936
@property
941937
def active_role_end(self):
942938
"""The default end patterns we should use for `gen` calls.

0 commit comments

Comments
 (0)