diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..f28239b --- /dev/null +++ b/.editorconfig @@ -0,0 +1,4 @@ +root = true + +[*] +charset = utf-8 diff --git a/.idea/.idea.KIKunstKirstenKlöckner/.idea/.gitignore b/.idea/.idea.KIKunstKirstenKlöckner/.idea/.gitignore new file mode 100644 index 0000000..d12008a --- /dev/null +++ b/.idea/.idea.KIKunstKirstenKlöckner/.idea/.gitignore @@ -0,0 +1,13 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Rider ignored files +/modules.xml +/.idea.KIKunstKirstenKlöckner.iml +/contentModel.xml +/projectSettingsUpdater.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/.idea.KIKunstKirstenKlöckner/.idea/.name b/.idea/.idea.KIKunstKirstenKlöckner/.idea/.name new file mode 100644 index 0000000..4b65b16 --- /dev/null +++ b/.idea/.idea.KIKunstKirstenKlöckner/.idea/.name @@ -0,0 +1 @@ +KIKunstKirstenKlöckner \ No newline at end of file diff --git a/.idea/.idea.KIKunstKirstenKlöckner/.idea/dataSources.xml b/.idea/.idea.KIKunstKirstenKlöckner/.idea/dataSources.xml new file mode 100644 index 0000000..5f147af --- /dev/null +++ b/.idea/.idea.KIKunstKirstenKlöckner/.idea/dataSources.xml @@ -0,0 +1,19 @@ + + + + + sqlserver.jb + true + com.jetbrains.jdbc.sqlserver.SqlServerDriver + Server=127.0.0.1,1433;Database=KiKunst + $ProjectFileDir$ + + + sqlserver.jb + true + com.jetbrains.jdbc.sqlserver.SqlServerDriver + Server=85.215.58.36;Database=KiKunstDatenbank + $ProjectFileDir$ + + + \ No newline at end of file diff --git a/.idea/.idea.KIKunstKirstenKlöckner/.idea/encodings.xml b/.idea/.idea.KIKunstKirstenKlöckner/.idea/encodings.xml new file mode 100644 index 0000000..a6876ae --- /dev/null +++ b/.idea/.idea.KIKunstKirstenKlöckner/.idea/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/.idea.KIKunstKirstenKlöckner/.idea/indexLayout.xml b/.idea/.idea.KIKunstKirstenKlöckner/.idea/indexLayout.xml new file mode 100644 index 0000000..7b08163 --- /dev/null +++ b/.idea/.idea.KIKunstKirstenKlöckner/.idea/indexLayout.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/.idea.KIKunstKirstenKlöckner/.idea/sqlDataSources.xml b/.idea/.idea.KIKunstKirstenKlöckner/.idea/sqlDataSources.xml new file mode 100644 index 0000000..26ef7e2 --- /dev/null +++ b/.idea/.idea.KIKunstKirstenKlöckner/.idea/sqlDataSources.xml @@ -0,0 +1,38 @@ + + + + + + \ No newline at end of file diff --git a/.idea/.idea.KIKunstKirstenKlöckner/.idea/sqldialects.xml b/.idea/.idea.KIKunstKirstenKlöckner/.idea/sqldialects.xml new file mode 100644 index 0000000..7fcc380 --- /dev/null +++ b/.idea/.idea.KIKunstKirstenKlöckner/.idea/sqldialects.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/.idea.KIKunstKirstenKlöckner/.idea/vcs.xml b/.idea/.idea.KIKunstKirstenKlöckner/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/.idea.KIKunstKirstenKlöckner/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/KIKunstKirstenKlöckner/Data/ChatGPT.cs b/KIKunstKirstenKlöckner/Data/ChatGPT.cs index afcd67d..229ed38 100644 --- a/KIKunstKirstenKlöckner/Data/ChatGPT.cs +++ b/KIKunstKirstenKlöckner/Data/ChatGPT.cs @@ -4,5 +4,5 @@ namespace KIKunstKirstenKlöckner.Data; public class ChatGPT { - public static Model GPT4Turbo => new Model("gpt-4-1106-preview") { OwnedBy = "openai" }; + public static Model GPT4Turbo => new Model("gpt-4-turbo") { OwnedBy = "openai" }; } diff --git a/KIKunstKirstenKlöckner/Extensions/ListExtension.cs b/KIKunstKirstenKlöckner/Extensions/ListExtension.cs index b448250..2fde889 100644 --- a/KIKunstKirstenKlöckner/Extensions/ListExtension.cs +++ b/KIKunstKirstenKlöckner/Extensions/ListExtension.cs @@ -6,7 +6,7 @@ { if (list.Count == 0) { - throw new ArgumentException("List cannot be emtpy: ", nameof(list)); + yield break; } if (n <= 0) { diff --git a/KIKunstKirstenKlöckner/KIKunstKirstenKlöckner.csproj b/KIKunstKirstenKlöckner/KIKunstKirstenKlöckner.csproj index 9b2cf21..c189d54 100644 --- a/KIKunstKirstenKlöckner/KIKunstKirstenKlöckner.csproj +++ b/KIKunstKirstenKlöckner/KIKunstKirstenKlöckner.csproj @@ -15,7 +15,6 @@ - diff --git a/KIKunstKirstenKlöckner/Pages/AiArt.razor b/KIKunstKirstenKlöckner/Pages/AiArt.razor index f84570b..c0c570d 100644 --- a/KIKunstKirstenKlöckner/Pages/AiArt.razor +++ b/KIKunstKirstenKlöckner/Pages/AiArt.razor @@ -39,7 +39,7 @@ } -AiArt +Wunschbild Generator
diff --git a/KIKunstKirstenKlöckner/Program.cs b/KIKunstKirstenKlöckner/Program.cs index 2c1a6f2..d3b50cd 100644 --- a/KIKunstKirstenKlöckner/Program.cs +++ b/KIKunstKirstenKlöckner/Program.cs @@ -1,6 +1,6 @@ using DataAccess.Data; using DataAccess.DbAccess; -using KIKunstKirstenKlöckner.Data; +using KIKunstKirstenKlöckner.Data; using Radzen; var builder = WebApplication.CreateBuilder(args); diff --git a/global.json b/global.json new file mode 100644 index 0000000..dad2db5 --- /dev/null +++ b/global.json @@ -0,0 +1,7 @@ +{ + "sdk": { + "version": "8.0.0", + "rollForward": "latestMajor", + "allowPrerelease": true + } +} \ No newline at end of file