Documentation
¶
Index ¶
Constants ¶
View Source
const ScannerBufferInitial = 1024 * 1024 // 1MB 初始缓冲区
ScannerBufferSize Scanner 缓冲区大小配置(用于流式响应解析)
View Source
const ScannerBufferMax = 10 * 1024 * 1024 // 10MB 最大缓冲区
Variables ¶
View Source
var NonStreamObject = "chat.completion"
View Source
var StopFinishReason = "stop"
View Source
var StreamObject = "chat.completion.chunk"
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.