Table of Contents

Class SupportAiProviderRequest

Namespace
Tharga.Team
Assembly
Tharga.Team.dll

A provider connection to check, list the models of, or save.

public sealed record SupportAiProviderRequest : IEquatable<SupportAiProviderRequest>
Inheritance
SupportAiProviderRequest
Implements
Inherited Members

Remarks

Its text never shows the key. A record prints every member, so a request logged by mistake would otherwise write the key into the log; ToString() is overridden to leave it out.

Properties

ApiKey

The key; null to use the one the team already stored, which is allowed only while the kind and the address are unchanged, so a stored key is never sent somewhere it was not entered for. For a provider that needs no key (RequiresApiKey), null with no stored key sends none.

public string ApiKey { get; init; }

Property Value

string

BaseAddress

The provider's address; null for the provider's default, where it has one.

public string BaseAddress { get; init; }

Property Value

string

Kind

The provider: one of the provider kinds ProviderDefaults lists.

public SupportAiConnectionKind Kind { get; init; }

Property Value

SupportAiConnectionKind

Model

The model to answer with. Required to connect and to test; not used to list models.

public string Model { get; init; }

Property Value

string

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.