你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CreateResponseRequest.Truncation Property

Definition

The truncation strategy to use for the model response.

  • 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.
  • disabled (default): If a model response will exceed the context window size for a model, the request will fail with a 400 error.
public Azure.AI.AgentServer.Contracts.Generated.Responses.CreateResponseRequestTruncation? Truncation { get; }
member this.Truncation : Nullable<Azure.AI.AgentServer.Contracts.Generated.Responses.CreateResponseRequestTruncation>
Public ReadOnly Property Truncation As Nullable(Of CreateResponseRequestTruncation)

Property Value

Applies to