Skip to content

Commit 463eeae

Browse files
committed
modify:limit version build
1 parent 584a8ff commit 463eeae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

XEngine_Module/XEngine_AIApi/AIApi_Chat/AIApi_Chat.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,13 +203,15 @@ bool CAIApi_Chat::AIApi_Chat_Excute(XNETHANDLE xhToken, LPCXSTR lpszModelName, L
203203
st_JsonRoot["messages"] = st_JsonArray;
204204

205205
xstring m_StrBody = Json::writeString(st_JsonBuilder, st_JsonRoot);
206+
#if XENGINE_VERSION_KERNEL >= 9 && XENGINE_VERSION_MAIN >= 21
206207
if (!APIClient_Http_Excute(xhToken, m_StrBody.c_str(), m_StrBody.length(), stl_MapIterator->second->tszAPIHdr))
207208
{
208209
AIApi_IsErrorOccur = true;
209210
AIApi_dwErrorCode = APIClient_GetLastError();
210211
st_Locker.unlock_shared();
211212
return false;
212213
}
214+
#endif
213215
st_Locker.unlock_shared();
214216
return true;
215217
}

0 commit comments

Comments
 (0)