Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
leokwsw committed Aug 14, 2024
1 parent 6169964 commit a10fefb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/imitate/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ func generateId() string {
func convertAPIRequest(apiRequest APIRequest, chatRequirementsArkoseRequired bool, chatRequirementsArkoseDx string, token string) chatgpt.CreateConversationRequest {
chatgptRequest := NewChatGPTRequest()

if token == "" {
if token == "" || strings.HasPrefix(apiRequest.Model, "gpt-4") {
chatgptRequest.Model = "gpt-4o-mini"
} else {
if strings.HasPrefix(apiRequest.Model, "gpt-4") {
Expand Down

0 comments on commit a10fefb

Please sign in to comment.