gitarsenal-cli 1.5.6 → 1.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/python/__pycache__/credentials_manager.cpython-313.pyc +0 -0
- package/python/__pycache__/fetch_modal_tokens.cpython-313.pyc +0 -0
- package/python/fetch_modal_tokens.py +1 -2
- package/python/fix_modal_token.py +2 -2
- package/python/fix_modal_token_advanced.py +1 -1
- package/python/test_modalSandboxScript.py +28 -1491
- package/python/test_nvcc.py +80 -0
package/package.json
CHANGED
Binary file
|
Binary file
|
@@ -144,7 +144,7 @@ def get_tokens():
|
|
144
144
|
|
145
145
|
# If we couldn't fetch from the server, try to get default tokens from gitarsenal.dev
|
146
146
|
if not token_id or not token_secret:
|
147
|
-
print("⚠️ Proxy server failed, trying to fetch default tokens from gitarsenal.dev")
|
147
|
+
# print("⚠️ Proxy server failed, trying to fetch default tokens from gitarsenal.dev")
|
148
148
|
token_id, token_secret, openai_api_key = fetch_default_tokens_from_gitarsenal()
|
149
149
|
|
150
150
|
# If we still don't have tokens, we can't proceed
|
@@ -168,7 +168,6 @@ def get_tokens():
|
|
168
168
|
# Set OpenAI API key if available
|
169
169
|
if openai_api_key:
|
170
170
|
os.environ["OPENAI_API_KEY"] = openai_api_key
|
171
|
-
print(f"✅ Set OPENAI_API_KEY environment variable")
|
172
171
|
|
173
172
|
return token_id, token_secret, openai_api_key
|
174
173
|
|
@@ -51,12 +51,12 @@ try:
|
|
51
51
|
print(f"✅ Using tokens from proxy server or defaults")
|
52
52
|
except (ImportError, ValueError) as e:
|
53
53
|
# If the module is not available or tokens are invalid, use hardcoded tokens
|
54
|
-
print(f"⚠️ Using default tokens")
|
54
|
+
# print(f"⚠️ Using default tokens")
|
55
55
|
|
56
56
|
print("🔧 Fixing Modal token (basic implementation)...")
|
57
57
|
|
58
58
|
# Set environment variables
|
59
|
-
os.environ["MODAL_TOKEN_ID"] = TOKEN_ID
|
59
|
+
# os.environ["MODAL_TOKEN_ID"] = TOKEN_ID
|
60
60
|
os.environ["MODAL_TOKEN_SECRET"] = TOKEN_SECRET
|
61
61
|
print(f"✅ Set MODAL_TOKEN_ID and MODAL_TOKEN_SECRET environment variables")
|
62
62
|
|
@@ -27,7 +27,7 @@ try:
|
|
27
27
|
# print(f"✅ Using tokens from proxy server or defaults")
|
28
28
|
except ImportError:
|
29
29
|
# If the module is not available, use hardcoded tokens
|
30
|
-
print(f"⚠️ Using default tokens")
|
30
|
+
# print(f"⚠️ Using default tokens")
|
31
31
|
|
32
32
|
# print("🔧 Advanced Modal Token Fixer")
|
33
33
|
|