|
|
|
@ -636,13 +636,15 @@ class ChatApiService(private val context: android.content.Context? = null) : Cor |
|
|
|
} catch (e: Exception) { |
|
|
|
Log.e(TAG, "onFunctionCallResult回调异常: ${e.message}", e) |
|
|
|
} |
|
|
|
// 将结果发送回OpenAI继续对话 |
|
|
|
sendFunctionCallResultInternal( |
|
|
|
sessionid= sessionid, |
|
|
|
messages = currentMessages, |
|
|
|
functionCall = functionCall, |
|
|
|
functionResult = gson.toJson(result) |
|
|
|
) |
|
|
|
if (functionName != "set_user_profile_field"){ |
|
|
|
// 将结果发送回OpenAI继续对话 |
|
|
|
sendFunctionCallResultInternal( |
|
|
|
sessionid= sessionid, |
|
|
|
messages = currentMessages, |
|
|
|
functionCall = functionCall, |
|
|
|
functionResult = gson.toJson(result) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} catch (e: Exception) { |
|
|
|
|