Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
openai
main
OpenAI
APIError
APIErrorModel
ApiType
AuthenticationError
ChatCompletionChoice
ChatCompletionRequest
ChatCompletionResponse
ChatCompletionStream
ChatCompletionStreamChoice
ChatCompletionStreamChoiceDelta
ChatCompletionStreamResponse
ChatFunction
ChatFunctionCall
ChatMessage
ChatMessageRole
ChatTool
ToolType
ChatToolCall
Client
Config
ProxyConfig
CompletionChoice
CompletionRequest
CompletionResponse
CompletionStream
ContentFilterResults
Embedding
EmbeddingConverter
EmbeddingEncoding
EmbeddingModel
EmbeddingRequest
EmbeddingResponse
Engine
ErrorAccumulator
FileDeletionStatus
FileRequest
FileResponse
FileStatus
FineTuningJob
FineTuningJobEvent
FineTuningJobEventList
FineTuningJobRequest
FineTuningStatus
FinishReason
FuncMarker
FunctionExecutor
Callback
Hate
HyperParams
ImageEditRequest
ImageRequest
ImageRespData
ImageRespFormat
ImageResponse
ImageSize
ImageVariationRequest
InnerError
InvalidAPIType
List
LogprobResult
Model
ModerationModel
ModerationModelConverter
ModerationRequest
ModerationResponse
ModerationResult
ModerationResultCategories
ModerationResultCategoryScores
OpenAIError
Permission
PromptAnnotation
RequestError
ResponseError
ResponseFormat
FormatType
Segment
SelfHarm
Sexual
TranscriptionRequest
TranscriptionRespFormat
TranscriptionResponse
Usage
Violence
Generated using Crystal 1.11.2
2024-11-04 10:06:49 UTC
class
OpenAI::
CompletionStream
OpenAI::CompletionStream
OpenAI::StreamReader(
OpenAI::CompletionResponse
)
Reference
Object
Defined in:
openai/api/completion.cr
Constructors
.new
(empty_msgs_limit, io : IO | String, response =
nil
)
Instance methods inherited from class
OpenAI::StreamReader(
OpenAI::CompletionResponse
)
error_accumulator : ErrorAccumulator
error_accumulator
,
finished? : Bool
finished?
,
next
next
,
reader : IO
reader
,
response : HTTP::Client::Response | Nil
response
Constructor methods inherited from class
OpenAI::StreamReader(
OpenAI::CompletionResponse
)
new(empty_msgs_limit : Int32, io : IO | String, response : Nil | HTTP::Client::Response =
nil
)
new
Constructor Detail
def self.
new
(empty_msgs_limit, io : IO | String, response =
nil
)
#
[
View source
]