fix: Windows amd64 platform repr (#4175)

This commit is contained in:
Daniel Bichuetti 2023-02-16 15:46:34 -03:00 committed by GitHub
parent cdb05f0f9a
commit 9f5a3344d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ from haystack.nodes.prompt import PromptTemplate
logger = logging.getLogger(__name__)
machine = platform.machine()
machine = platform.machine().lower()
system = platform.system()
USE_TIKTOKEN = False

View File

@ -25,7 +25,7 @@ if TYPE_CHECKING:
logger = logging.getLogger(__name__)
machine = platform.machine()
machine = platform.machine().lower()
system = platform.system()
USE_TIKTOKEN = False

View File

@ -88,7 +88,7 @@ dependencies = [
"elasticsearch>=7.7,<8",
# OpenAI tokenizer
"tiktoken>=0.1.2; python_version >= '3.8' and (platform_machine == 'amd64' or platform_machine == 'x86_64' or (platform_machine == 'arm64' and platform_system == 'Darwin'))",
"tiktoken>=0.1.2; python_version >= '3.8' and (platform_machine == 'AMD64' or platform_machine == 'amd64' or platform_machine == 'x86_64' or (platform_machine == 'arm64' and platform_system == 'Darwin'))",
# context matching
"rapidfuzz>=2.0.15,<2.8.0", # FIXME https://github.com/deepset-ai/haystack/pull/3199