Skip to content

Commit

Permalink
fix: correct field name from SystemInstructions to SystemInstruction …
Browse files Browse the repository at this point in the history
…in Gemini request conversion
  • Loading branch information
mxdlzg committed Dec 23, 2024
1 parent b4c3034 commit 595c428
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion relay/adaptor/gemini/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func ConvertRequest(textRequest model.GeneralOpenAIRequest) *ChatRequest {
}
// Converting system prompt to SystemInstructions
if content.Role == "system" {
geminiRequest.SystemInstructions = content
geminiRequest.SystemInstruction = content
continue
}
geminiRequest.Contents = append(geminiRequest.Contents, content)
Expand Down

0 comments on commit 595c428

Please sign in to comment.