mirror of
https://github.com/fumiama/deepinfra.git
synced 2026-06-12 14:06:35 +08:00
fix(model): still use string in system prompt
This commit is contained in:
@@ -166,9 +166,9 @@ func (cs Contents) ToGenAIParts() []GenAIPart {
|
||||
return ps
|
||||
}
|
||||
|
||||
func (opai *GenAI) System(prompt ...Content) Protocol {
|
||||
func (opai *GenAI) System(prompt string) Protocol {
|
||||
opai.SystemInstruction = &GenAIContent{
|
||||
Parts: Contents(prompt).ToGenAIParts(),
|
||||
Parts: []GenAIPart{{Text: prompt}},
|
||||
}
|
||||
return opai
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user