v1.0.10: fix cfhttp.statusCode сравнение (200 OK vs 200)
This commit is contained in:
+1
-1
@@ -91,7 +91,7 @@
|
||||
<cfhttpparam type="body" value="#serializeJSON(llmPayload)#">
|
||||
</cfhttp>
|
||||
|
||||
<cfif cfhttp.statusCode EQ 200>
|
||||
<cfif cfhttp.statusCode EQ 200 OR left(cfhttp.statusCode, 3) EQ "200">
|
||||
<cfset llmResp = deserializeJSON(cfhttp.fileContent)>
|
||||
<cfset llmText = llmResp.choices[1].message.content>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user