perf: use envvar whenever possible, and use cmd only as fallback (#228)

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
Aaron Pham
2024-08-26 01:13:12 -04:00
committed by GitHub
parent 85101c1410
commit a1aed57c60
2 changed files with 22 additions and 2 deletions

View File

@@ -213,13 +213,15 @@ end
M.BASE_PROVIDER_KEYS = {
"endpoint",
"model",
"local",
"deployment",
"api_version",
"proxy",
"allow_insecure",
"api_key_name",
"timeout",
-- internal
"local",
"_shellenv",
}
---@return {width: integer, height: integer}