fix: should not force to use OPENAI_API_KEY with provider azure (#20)
This commit is contained in:
parent
78be877a3e
commit
de22014785
@ -154,7 +154,7 @@ end
|
|||||||
|
|
||||||
local function call_openai_api_stream(question, code_lang, code_content, on_chunk, on_complete)
|
local function call_openai_api_stream(question, code_lang, code_content, on_chunk, on_complete)
|
||||||
local api_key = os.getenv("OPENAI_API_KEY")
|
local api_key = os.getenv("OPENAI_API_KEY")
|
||||||
if not api_key then
|
if not api_key and config.get().provider == "openai" then
|
||||||
error("OPENAI_API_KEY environment variable is not set")
|
error("OPENAI_API_KEY environment variable is not set")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user