mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-01-06 03:57:19 +00:00
fix: Windows amd64 platform repr (#4175)
This commit is contained in:
parent
cdb05f0f9a
commit
9f5a3344d5
@ -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
|
||||
|
||||
@ -25,7 +25,7 @@ if TYPE_CHECKING:
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
machine = platform.machine()
|
||||
machine = platform.machine().lower()
|
||||
system = platform.system()
|
||||
|
||||
USE_TIKTOKEN = False
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user