We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
get()
1 parent 9bc5a26 commit d502953Copy full SHA for d502953
lua/neoai/chat/models/openai.lua
@@ -52,7 +52,7 @@ end
52
---@param on_stdout_chunk fun(chunk: string) Function to call whenever a stdout chunk occurs
53
---@param on_complete fun(err?: string, output?: string) Function to call when model has finished
54
M.send_to_model = function (chat_history, on_stdout_chunk, on_complete)
55
- local api_key = os.getenv(config.options.open_ai.api_key.get())
+ local api_key = os.getenv(config.options.open_ai.api_key.env)
56
if not api_key then
57
on_complete("OpenAI API Key is missing.", nil)
58
return
0 commit comments