version 1.1
This commit is contained in:
@@ -3,6 +3,7 @@ using BeWo.Data.Access;
|
||||
using BeWo.Data.Entities;
|
||||
using BeWo.Data.Security;
|
||||
using BeWo.Service.AI;
|
||||
using BeWo.Service.Core;
|
||||
using BeWo.Service.DCEntityMapper;
|
||||
using BeWo.Service.ServiceContracts;
|
||||
using BeWo.Service.ServiceProxy;
|
||||
@@ -18,6 +19,7 @@ using DevExpress.XtraCharts.Native;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Runtime.ExceptionServices;
|
||||
using System.Security.Cryptography;
|
||||
@@ -213,7 +215,6 @@ namespace BeWo.Service.ServiceImplementations
|
||||
|
||||
return SendNewMessage(conv, message);
|
||||
}
|
||||
|
||||
private AiConversationMessageDC[] SendNewMessage(AiConversation conv, string message)
|
||||
{
|
||||
// Updated
|
||||
@@ -240,6 +241,13 @@ namespace BeWo.Service.ServiceImplementations
|
||||
// Send Request, wait for Response
|
||||
var dt_before_request = DateTime.Now;
|
||||
var response = ServiceFacade.OpenWebApiClient.SendAiMessageRequest(conv_dc, config, out var message2, out var model, out var duration);
|
||||
|
||||
if (!response.Success)
|
||||
{
|
||||
var json = JsonConvert.SerializeObject(response.Copy<string>());
|
||||
File.WriteAllText(MergedConfig.GetSetting("AiServiceLogFilePath"), json);
|
||||
}
|
||||
|
||||
var result = response.GetResponseData();
|
||||
|
||||
// Antwort
|
||||
|
||||
Reference in New Issue
Block a user