feat!: update models and prompts
This commit is contained in:
		
							parent
							
								
									9ffde82094
								
							
						
					
					
						commit
						2617881130
					
				| 
						 | 
				
			
			@ -234,7 +234,7 @@ func handleAssistantConversation(c tele.Context, thread []*tele.Message) error {
 | 
			
		|||
	}
 | 
			
		||||
 | 
			
		||||
	req := openai.ChatRequest{
 | 
			
		||||
		Model:       openai.ModelGpt04,
 | 
			
		||||
		Model:       openai.ModelGpt04Turbo,
 | 
			
		||||
		Messages:    chatReqMsgs,
 | 
			
		||||
		Temperature: lo.ToPtr(0.42),
 | 
			
		||||
		MaxTokens:   2048,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,9 +1,11 @@
 | 
			
		|||
package openai
 | 
			
		||||
 | 
			
		||||
const (
 | 
			
		||||
	ModelTextDavinciEdit001 = "text-davinci-edit-001"
 | 
			
		||||
	ModelGpt0305Turbo       = "gpt-3.5-turbo"
 | 
			
		||||
	ModelGpt0305Turbo_0301  = "gpt-3.5-turbo-0301"
 | 
			
		||||
	ModelGpt04              = "gpt-4"
 | 
			
		||||
	ModelGpt04_0314         = "gpt-4-0314"
 | 
			
		||||
	ModelTextDavinciEdit001 = "text-davinci-edit-001" // legacy model
 | 
			
		||||
	ModelGpt0305Turbo       = "gpt-3.5-turbo"         // legacy model
 | 
			
		||||
	ModelGpt0305Turbo_0125  = "gpt-3.5-turbo-0125"    // legacy model
 | 
			
		||||
	ModelGpt04              = "gpt-4"                 // legacy model
 | 
			
		||||
	ModelGpt04_0613         = "gpt-4-0613"            // legacy model
 | 
			
		||||
	ModelGpt04Turbo         = "gpt-4-turbo"
 | 
			
		||||
	ModelGpt04Turbo_240409  = "gpt-4-turbo-2024-04-09"
 | 
			
		||||
)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -12,6 +12,8 @@ func Assistant() string {
 | 
			
		|||
		"Most importantly, Misaka is a helpful assistant.",
 | 
			
		||||
		"",
 | 
			
		||||
		"Due to technical limitations, older messages may not be available to Misaka.",
 | 
			
		||||
		"",
 | 
			
		||||
		"We are currently in the year 2024.",
 | 
			
		||||
	}, "\n")
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue