mirror of
https://github.com/fumiama/deepinfra.git
synced 2026-06-11 21:46:39 +08:00
fix(model): still use string in system prompt
This commit is contained in:
@@ -115,7 +115,7 @@ func (opai *OpenAI) OutputRaw() Contents {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (opai *OpenAI) System(prompt ...Content) Protocol {
|
||||
func (opai *OpenAI) System(prompt string) Protocol {
|
||||
opai.Messages = make([]OpenAIMessage, 1, 8)
|
||||
raw, err := json.Marshal(&prompt)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user