Skip to content

Commit

Permalink
chore(internal): use different 32bit detection method (#1652)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Aug 15, 2024
1 parent c58a0a4 commit cd8c3a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/openai/_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 @@ -2012,7 +2013,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 @@ -2028,7 +2028,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 cd8c3a3

Please sign in to comment.