12 lines
235 B
Go
12 lines
235 B
Go
package ai
|
|
|
|
import (
|
|
"ymgb/openai"
|
|
)
|
|
|
|
//https://github.com/sashabaranov/go-openai
|
|
|
|
func CompressChat(api *openai.API, history []openai.Message) (openai.AIResponse, error) {
|
|
return api.CreateCompletion(history, CompressPrompt, 0.0)
|
|
}
|