We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e19f5da commit ee2878dCopy full SHA for ee2878d
adapter/openai/chat.go
@@ -7,6 +7,7 @@ import (
7
"errors"
8
"fmt"
9
"regexp"
10
+ "strings"
11
)
12
13
func (c *ChatInstance) GetChatEndpoint(props *adaptercommon.ChatProps) string {
@@ -45,8 +46,8 @@ func (c *ChatInstance) GetChatBody(props *adaptercommon.ChatProps, stream bool)
45
46
47
messages := formatMessages(props)
48
- // o1, o3 compatibility
49
- isNewModel := len(props.Model) >= 2 && (props.Model[:2] == "o1" || props.Model[:2] == "o3")
+ // o1, o3, gpt-5 compatibility
50
+ isNewModel := len(props.Model) >= 2 && (props.Model[:2] == "o1" || props.Model[:2] == "o3") || strings.HasPrefix(props.Model, "gpt-5")
51
52
var temperature *float32
53
if isNewModel {
0 commit comments