mirror of
https://github.com/fumiama/deepinfra.git
synced 2026-06-12 05:50:27 +08:00
feat(model): add Cloner to Protocol
This commit is contained in:
@@ -156,7 +156,7 @@ func (opai *OpenAI) Assistant(prompt ...Content) Protocol {
|
||||
return opai.normal("assistant", prompt...)
|
||||
}
|
||||
|
||||
func (opai *OpenAI) Clone() Cloner {
|
||||
func (opai *OpenAI) Clone() Protocol {
|
||||
x := new(OpenAI)
|
||||
*x = *opai
|
||||
x.Choices = nil
|
||||
|
||||
Reference in New Issue
Block a user