< Summary

Information
Class: UIBlazor.Models.ConnectionProfile
Assembly: UIBlazor
File(s): /home/runner/work/InvAit/InvAit/UIBlazor/Models/ConnectionProfile.cs
Tag: 14_22728831704
Line coverage
100%
Covered lines: 15
Uncovered lines: 0
Coverable lines: 15
Total lines: 35
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Id()100%11100%
get_Name()100%11100%
get_Provider()100%11100%
get_Endpoint()100%11100%
get_ApiKey()100%11100%
get_ApiKeyHeader()100%11100%
get_Model()100%11100%
get_AvailableModels()100%11100%
get_Temperature()100%11100%
get_MaxTokens()100%11100%
get_Stream()100%11100%
get_SkipSSL()100%11100%
get_SystemPrompt()100%11100%
get_MaxMessages()100%11100%
get_SessionMaxAgeHours()100%11100%

File(s)

/home/runner/work/InvAit/InvAit/UIBlazor/Models/ConnectionProfile.cs

#LineLine coverage
 1namespace UIBlazor.Models;
 2
 3public class ConnectionProfile : BaseOptions
 4{
 355    public string Id { get; init => SetIfChanged(ref field, value); } = Guid.NewGuid().ToString();
 6
 187    public string Name { get; set => SetIfChanged(ref field, value); } = "New Profile";
 8
 149    public string Provider { get; set => SetIfChanged(ref field, value); } = "OpenAI Compatible";
 10
 2611    public string Endpoint { get; set => SetIfChanged(ref field, value.TrimEnd('/', '\\')); } = string.Empty;
 12
 2213    public string ApiKey { get; set => SetIfChanged(ref field, value); } = string.Empty;
 14
 1915    public string ApiKeyHeader { get; set => SetIfChanged(ref field, value); } = "Authorization";
 16
 2117    public string Model { get; set => SetIfChanged(ref field, value); } = "---";
 18
 1419    public List<string> AvailableModels { get; set => SetIfChanged(ref field, value); } = [];
 20
 2221    public double Temperature { get; set => SetIfChanged(ref field, value); } = 0.7;
 22
 2123    public int MaxTokens { get; set => SetIfChanged(ref field, value); } = 50_000;
 24
 2125    public bool Stream { get; set => SetIfChanged(ref field, value); } = true;
 26
 1327    public bool SkipSSL { get; set => SetIfChanged(ref field, value); } = false;
 28
 2229    public string SystemPrompt { get; set => SetIfChanged(ref field, value); } = string.Empty;
 30
 2231    public int MaxMessages { get; set => SetIfChanged(ref field, value); } = 50;
 32
 33    // TODO: нужно реализовать
 1434    public int SessionMaxAgeHours { get; set => SetIfChanged(ref field, value); } = 24;
 35}