package
0.0.0-20241114031545-230a07659d58
Repository: https://github.com/mylxsw/aidea-server.git
Documentation: pkg.go.dev

# Functions

MessageTokenCount 计算对话上下文的 token 数量 TODO 不通厂商模型的 Token 计算方式可能不同,需要根据厂商模型进行区分.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ReduceMessageContext 递归减少对话上下文.
ReduceMessageContextUpToContextWindow 减少对话上下文到指定的上下文窗口大小.

# Variables

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Request represents a request structure for chat completion API.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author

# Type aliases

No description provided by the author