File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
src/subsystems/LLMManager/LLM.service/connectors/openai Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @smythos/sre" ,
3- "version" : " 1.5.60 " ,
3+ "version" : " 1.5.61 " ,
44 "description" : " Smyth Runtime Environment" ,
55 "author" : " Alaa-eddine KADDOURI" ,
66 "license" : " MIT" ,
Original file line number Diff line number Diff line change @@ -100,8 +100,8 @@ export class OpenAIConnector extends LLMConnector {
100100
101101 const result = await apiInterface . createRequest ( body , context ) ;
102102
103- const message = result ?. choices ?. [ 0 ] ?. message ;
104- const finishReason = result ?. choices ?. [ 0 ] ?. finish_reason ;
103+ const message = result ?. choices ?. [ 0 ] ?. message || result ?. output_text ;
104+ const finishReason = result ?. choices ?. [ 0 ] ?. finish_reason || result ?. incomplete_details || 'stop' ;
105105
106106 let toolsData : ToolData [ ] = [ ] ;
107107 let useTool = false ;
Original file line number Diff line number Diff line change 11{
22 "name" : " @smythos/sdk" ,
3- "version" : " 1.1.2 " ,
3+ "version" : " 1.1.3 " ,
44 "description" : " SRE SDK" ,
55 "keywords" : [
66 " smythos" ,
You can’t perform that action at this time.
0 commit comments