kernl

Type Alias: SharedWarning

type SharedWarning = 
  | {
  details?: string;
  feature: string;
  type: "unsupported";
}
  | {
  details?: string;
  feature: string;
  type: "compatibility";
}
  | {
  message: string;
  type: "other";
};

Defined in: packages/protocol/src/language-model/model.ts:181

Warning from the model provider for this call. The call will proceed, but e.g. some settings might not be supported, which can lead to suboptimal results.

Type Declaration

{
  details?: string;
  feature: string;
  type: "unsupported";
}
NameTypeDescriptionDefined in
details?stringAdditional details about the warning.packages/protocol/src/language-model/model.ts:196
featurestringThe feature that is not supported.packages/protocol/src/language-model/model.ts:191
type"unsupported"A feature is not supported by the model.packages/protocol/src/language-model/model.ts:186
{
  details?: string;
  feature: string;
  type: "compatibility";
}
NameTypeDescriptionDefined in
details?stringAdditional details about the warning.packages/protocol/src/language-model/model.ts:212
featurestringThe feature that is used in compatibility mode.packages/protocol/src/language-model/model.ts:207
type"compatibility"A compatibility feature is used that might lead to suboptimal results.packages/protocol/src/language-model/model.ts:202
{
  message: string;
  type: "other";
}
NameTypeDescriptionDefined in
messagestringThe message of the warning.packages/protocol/src/language-model/model.ts:223
type"other"Other warning.packages/protocol/src/language-model/model.ts:218

On this page