Skip to content

Commit c3d9a83

Browse files
authored
LM_STUDIO_API_TOKEN -> LM_API_TOKEN
1 parent 2f245ae commit c3d9a83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lmstudio/json_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@
200200
DEFAULT_TTL = 60 * 60 # By default, leaves idle models loaded for an hour
201201

202202
# lmstudio-js and lmstudio-python use the same API token environment variable
203-
_ENV_API_TOKEN = "LMSTUDIO_API_TOKEN"
203+
_ENV_API_TOKEN = "LM_API_TOKEN"
204204
_LMS_API_TOKEN_REGEX = re.compile(
205205
r"^sk-lm-(?P<clientIdentifier>[A-Za-z0-9]{8}):(?P<clientPasskey>[A-Za-z0-9]{20})$"
206206
)

0 commit comments

Comments
 (0)