Skip to content

Commit

Permalink
chore(internal): use different 32bit detection method (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Aug 16, 2024
1 parent 0537357 commit 1940b79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/groq/_base_client.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import annotations

import sys
import json
import time
import uuid
Expand Down Expand Up @@ -1982,7 +1983,6 @@ def get_python_version() -> str:

def get_architecture() -> Arch:
try:
python_bitness, _ = platform.architecture()
machine = platform.machine().lower()
except Exception:
return "unknown"
Expand All @@ -1998,7 +1998,7 @@ def get_architecture() -> Arch:
return "x64"

# TODO: untested
if python_bitness == "32bit":
if sys.maxsize <= 2**32:
return "x32"

if machine:
Expand Down

0 comments on commit 1940b79

Please sign in to comment.