Struct TruncationType
Assembly: Glitch9.AIDevKit.dll
Syntax
[Serializable]
public readonly struct TruncationType : IStringWrapper
Constructors
|
Edit this page
View Source
TruncationType(string)
Declaration
public TruncationType(string value)
Parameters
| Type |
Name |
Description |
| string |
value |
|
Fields
|
Edit this page
View Source
Auto
If the context of this response and previous ones exceeds the model's context window size,
the model will truncate the response to fit the context window by dropping input items in the middle of the conversation.
Declaration
public const string Auto = "auto"
Field Value
|
Edit this page
View Source
Disabled
Default.
If a model response will exceed the context window size for a model,
the request will fail with a 400 error.
Declaration
public const string Disabled = "disabled"
Field Value
|
Edit this page
View Source
LastMessages
Declaration
public const string LastMessages = "last_messages"
Field Value
|
Edit this page
View Source
RetentionRatio
Declaration
public const string RetentionRatio = "retention_ratio"
Field Value
Properties
|
Edit this page
View Source
Value
Declaration
public string Value { get; }
Property Value
Operators
|
Edit this page
View Source
implicit operator string(TruncationType)
Declaration
public static implicit operator string(TruncationType t)
Parameters
Returns
|
Edit this page
View Source
implicit operator TruncationType(string)
Declaration
public static implicit operator TruncationType(string v)
Parameters
| Type |
Name |
Description |
| string |
v |
|
Returns
Implements
Extension Methods