OpenWebUI raus, Ollama2 ordentlich rein.
- UnitTests fehlen
This commit is contained in:
@@ -388,8 +388,8 @@
|
||||
<add key="SendMailModuleGkvSender" value="noreply@bewoplaner.de" />
|
||||
<add key="SendMailModuleGkvReceiver" value="dakota.exchange@ownsoft.de" />
|
||||
|
||||
<add key="OpenWebUIUrl" value="https://owui1.ownsoft.de/"/>
|
||||
<add key="OllamaUrl" value="https://w2.ownchat.de" />
|
||||
<add key="Ollama2Url" value="https://ai3.ownsoft.de" />
|
||||
|
||||
<add key="XRechnungApiUrl" value="https://test2.evplaner.de/xrg/"/>
|
||||
<add key="StoredTenantFilesFolderPath" value="C:\BeWoPlaner\StoredTenantFiles"/>
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
<appSettings>
|
||||
<add key="OpenWebUIKey" value=""/>
|
||||
<add key="OllamaKey" value=""/>
|
||||
<add key="Ollama2Key" value=""/>
|
||||
<add key="GetGkvSumApiKey" value=""/>
|
||||
<add key="DownloadReportApiKey" value=""/>
|
||||
<add key="OpenrouteServiceApiKey" value="" />
|
||||
|
||||
@@ -397,7 +397,6 @@
|
||||
<add key="SendMailModuleGkvSender" value="noreply@bewoplaner.de" />
|
||||
<add key="SendMailModuleGkvReceiver" value="dakota.exchange@ownsoft.de" />
|
||||
|
||||
<!--<add key="OpenWebUIUrl" value="https://owui1.ownsoft.de/" />-->
|
||||
<add key="OllamaUrl" value="https://w2.ownchat.de" />
|
||||
<add key="Ollama2Url" value="https://ai3.ownsoft.de" />
|
||||
|
||||
|
||||
@@ -9,7 +9,6 @@ namespace BeWo.Service
|
||||
{
|
||||
public enum WebConfigSetting
|
||||
{
|
||||
OpenWebUIUrl,
|
||||
OllamaUrl,
|
||||
Ollama2Url,
|
||||
XRechnungApiUrl,
|
||||
@@ -23,8 +22,8 @@ namespace BeWo.Service
|
||||
public enum WebSecretConfigSetting
|
||||
{
|
||||
None = -1,
|
||||
OpenWebUIKey,
|
||||
OllamaKey,
|
||||
Ollama2Key,
|
||||
GetGkvSumApiKey,
|
||||
DownloadReportApiKey,
|
||||
OpenrouteServiceApiKey,
|
||||
|
||||
@@ -11,10 +11,10 @@ namespace BeWo.Service.ServiceProxy
|
||||
{
|
||||
public static class ServiceFacade
|
||||
{
|
||||
private static readonly Lazy<OpenWebApiClient> _OpenWebApiClient = new Lazy<OpenWebApiClient>(()
|
||||
=> new OpenWebApiClient(
|
||||
MergedConfig.GetSetting(WebConfigSetting.OpenWebUIUrl),
|
||||
MergedConfig.GetSecretSetting(WebSecretConfigSetting.OpenWebUIKey)));
|
||||
//private static readonly Lazy<OpenWebApiClient> _OpenWebApiClient = new Lazy<OpenWebApiClient>(()
|
||||
// => new OpenWebApiClient(
|
||||
// MergedConfig.GetSetting(WebConfigSetting.OpenWebUIUrl),
|
||||
// MergedConfig.GetSecretSetting(WebSecretConfigSetting.OpenWebUIKey)));
|
||||
|
||||
private static readonly Lazy<OllamaApiClient> _OllamaApiClient = new Lazy<OllamaApiClient>(()
|
||||
=> new OllamaApiClient(
|
||||
@@ -24,13 +24,13 @@ namespace BeWo.Service.ServiceProxy
|
||||
private static readonly Lazy<OllamaApiClient> _Ollama2ApiClient = new Lazy<OllamaApiClient>(()
|
||||
=> new OllamaApiClient(
|
||||
MergedConfig.GetSetting(WebConfigSetting.Ollama2Url),
|
||||
MergedConfig.GetSecretSetting(WebSecretConfigSetting.OllamaKey),
|
||||
MergedConfig.GetSecretSetting(WebSecretConfigSetting.Ollama2Key),
|
||||
AiModelSource.ollama2));
|
||||
|
||||
private static readonly Lazy<XRechnungApiClient> _XRechnungFacade = new Lazy<XRechnungApiClient>(()
|
||||
=> new XRechnungApiClient());
|
||||
|
||||
public static OpenWebApiClient OpenWebApiClient => _OpenWebApiClient.Value;
|
||||
public static OpenWebApiClient OpenWebApiClient => null;
|
||||
public static OllamaApiClient OllamaApiClient => _OllamaApiClient.Value;
|
||||
public static OllamaApiClient Ollama2ApiClient => _Ollama2ApiClient.Value;
|
||||
public static XRechnungApiClient XRechnung => _XRechnungFacade.Value;
|
||||
|
||||
Reference in New Issue
Block a user