diff --git a/conversion/requests/chatgpt/convert.go b/conversion/requests/chatgpt/convert.go index a0a67dc3..784f8960 100644 --- a/conversion/requests/chatgpt/convert.go +++ b/conversion/requests/chatgpt/convert.go @@ -21,7 +21,11 @@ func ConvertAPIRequest(api_request official_types.APIRequest, account string, se chatgpt_request.Model = "text-davinci-002-render-sha" } else if strings.HasPrefix(api_request.Model, "gpt-4") { api_version = 4 - chatgpt_request.Model = "gpt-4" + if api_request.Model == "gpt-4o" { + chatgpt_request.Model = api_request.Model + } else { + chatgpt_request.Model = "gpt-4" + } if len(api_request.Model) > 12 { key := api_request.Model[6:11] if key == "gizmo" {