File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -11,3 +11,6 @@ local: build
1111
1212lint :
1313 moonc -l openai
14+
15+ tags ::
16+ moon-tags $$(git ls-files openai/ | grep -i '\.moon$$' ) > $@
Original file line number Diff line number Diff line change 1- local VERSION = " 1.4.0 "
1+ local VERSION = " 1.4.1 "
22local ltn12 = require (" ltn12" )
33local cjson = require (" cjson" )
44local unpack = table.unpack or unpack
142142 functions = self .functions ,
143143 model = self .opts .model ,
144144 temperature = self .opts .temperature ,
145- stream = stream_callback and true or nil
145+ stream = stream_callback and true or nil ,
146+ response_format = self .opts .response_format
146147 }, stream_callback )
147148 if status ~= 200 then
148149 local err_msg = " Bad status: " .. tostring (status )
Original file line number Diff line number Diff line change 1- VERSION = " 1.4.0 "
1+ VERSION = " 1.4.1 "
22
33ltn12 = require " ltn12"
44cjson = require " cjson"
@@ -171,6 +171,7 @@ class ChatSession
171171 model : @opts . model
172172 temperature : @opts . temperature
173173 stream : stream_callback and true or nil
174+ response_format : @opts . response_format
174175 } , stream_callback
175176
176177 if status != 200
You can’t perform that action at this time.
0 commit comments