1
0
mirror of https://github.com/fumiama/deepinfra.git synced 2026-06-28 08:40:29 +08:00

feat(model): add Cloner to Protocol

This commit is contained in:
源文雨
2025-12-22 00:31:08 +08:00
parent 541d66a361
commit 0f52825474
4 changed files with 30 additions and 0 deletions

View File

@@ -188,3 +188,12 @@ func (opai *GenAI) Assistant(prompt ...Content) Protocol {
})
return opai
}
func (opai *GenAI) Clone() Cloner {
x := new(GenAI)
*x = *opai
x.SystemInstruction = nil
x.Contents = nil
x.Candidates = nil
return x
}