Skip to content

LanguageModelStreamResponse

Namespace: Vercel.AI.Provider

public sealed class LanguageModelStreamResponse

Response info for a stream call. Maps to the response field of doStream.

Inheritance: object

View source

LanguageModelStreamResponse(IReadOnlyDictionary<string, string>?)

Section titled “LanguageModelStreamResponse(IReadOnlyDictionary<string, string>?)”
public LanguageModelStreamResponse(IReadOnlyDictionary<string, string>? headers = null)

Creates response info.

Parameters

Name Type Description
headers IReadOnlyDictionary<string, string>

View source

public IReadOnlyDictionary<string, string> Headers { get; }

HTTP response headers.

Value: IReadOnlyDictionary<string, string>

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product