Skip to content

Commit ead4ed2

Browse files
authored
Add files via upload
Fixed error in the Excel function test, where the API key passed to the function was not been set in the call. Updated Demo project with recently updated modules.
1 parent 6ad0ce8 commit ead4ed2

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

OpenAIFrameworkDemo.xlsm

2.14 KB
Binary file not shown.

mdOpenAI_Examples.bas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Public Function GETTEXTFROMOPENAI(ByVal strPrompt As String, ByVal strAPIKey As
109109

110110
Set oOpenAI = New clsOpenAI
111111

112-
oOpenAI.API_KEY = API_KEY
112+
oOpenAI.API_KEY = strAPIKey
113113

114114
If Not IsEmpty(strModel) Then
115115
oOpenAI.Model = strModel

0 commit comments

Comments
 (0)