mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-09 19:34:53 +00:00
damnit python
This commit is contained in:
parent
cdc005bcb0
commit
f1e054c80a
@ -16,7 +16,7 @@ from syrupy.extensions.json import JSONSnapshotExtension
|
||||
from aiohttp import ClientConnectorError, ClientOSError, ServerDisconnectedError
|
||||
|
||||
from text_generation import AsyncClient
|
||||
from text_generation.types import Response, Details, PrefillToken, Token, BestOfSequence
|
||||
from text_generation.types import Response, Details, InputToken, Token, BestOfSequence
|
||||
|
||||
DOCKER_IMAGE = os.getenv("DOCKER_IMAGE", None)
|
||||
HUGGING_FACE_HUB_TOKEN = os.getenv("HUGGING_FACE_HUB_TOKEN", None)
|
||||
@ -62,7 +62,7 @@ class ResponseComparator(JSONSnapshotExtension):
|
||||
and token.special == other.special
|
||||
)
|
||||
|
||||
def eq_prefill_token(prefill_token: PrefillToken, other: PrefillToken) -> bool:
|
||||
def eq_prefill_token(prefill_token: InputToken, other: InputToken) -> bool:
|
||||
try:
|
||||
return (
|
||||
prefill_token.id == other.id
|
||||
|
Loading…
Reference in New Issue
Block a user