change model

This commit is contained in:
Kristian 2024-12-08 05:56:53 +01:00
parent cf60b9bcec
commit 44f985bec6

View File

@ -93,14 +93,11 @@ func populateConversationHistory(session *discordgo.Session, channelID string, c
return conversationHistory
}
// Function to handle Groq API requests and pagination
func chatGPT(session *discordgo.Session, channelID string, conversationHistory []map[string]interface{}) {
OpenAIToken := OpenAIToken
GroqBaseURL := "https://api.groq.com/openai/v1"
GroqModel := "llama-3.2-90b-text-preview"
GroqModel := "llama-3.1-70b-versatile"
// Add system message at the start of conversation history
conversationHistory = append([]map[string]interface{}{