diff --git a/OpenAIFrameworkDemo.xlsm b/OpenAIFrameworkDemo.xlsm index 857eb61..99d36c1 100644 Binary files a/OpenAIFrameworkDemo.xlsm and b/OpenAIFrameworkDemo.xlsm differ diff --git a/mdOpenAI_Examples.bas b/mdOpenAI_Examples.bas index 586debf..ea5f823 100644 --- a/mdOpenAI_Examples.bas +++ b/mdOpenAI_Examples.bas @@ -109,7 +109,7 @@ Public Function GETTEXTFROMOPENAI(ByVal strPrompt As String, ByVal strAPIKey As Set oOpenAI = New clsOpenAI - oOpenAI.API_KEY = API_KEY + oOpenAI.API_KEY = strAPIKey If Not IsEmpty(strModel) Then oOpenAI.Model = strModel