Skip to content

Commit a1a3b7f

Browse files
chore: change default model to gpt4o (#356)
1 parent 6a56ded commit a1a3b7f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+51
-51
lines changed

pkg/openai/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
)
2121

2222
const (
23-
DefaultModel = openai.GPT4Turbo
23+
DefaultModel = openai.GPT4o
2424
)
2525

2626
var (
@@ -45,7 +45,7 @@ type Options struct {
4545
APIVersion string `usage:"OpenAI API Version (for Azure)" name:"openai-api-version" env:"OPENAI_API_VERSION"`
4646
APIType openai.APIType `usage:"OpenAI API Type (valid: OPEN_AI, AZURE, AZURE_AD)" name:"openai-api-type" env:"OPENAI_API_TYPE"`
4747
OrgID string `usage:"OpenAI organization ID" name:"openai-org-id" env:"OPENAI_ORG_ID"`
48-
DefaultModel string `usage:"Default LLM model to use" default:"gpt-4-turbo"`
48+
DefaultModel string `usage:"Default LLM model to use" default:"gpt-4o"`
4949
ConfigFile string `usage:"Path to GPTScript config file" name:"config"`
5050
SetSeed bool `usage:"-"`
5151
CacheKey string `usage:"-"`

pkg/tests/testdata/TestCase/call1.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
`{
2-
"Model": "gpt-4-turbo",
2+
"Model": "gpt-4o",
33
"InternalSystemPrompt": null,
44
"Tools": [
55
{

pkg/tests/testdata/TestCase2/call1.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
`{
2-
"Model": "gpt-4-turbo",
2+
"Model": "gpt-4o",
33
"InternalSystemPrompt": null,
44
"Tools": [
55
{

pkg/tests/testdata/TestChat/call1.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
`{
2-
"Model": "gpt-4-turbo",
2+
"Model": "gpt-4o",
33
"InternalSystemPrompt": false,
44
"Tools": null,
55
"Messages": [

pkg/tests/testdata/TestChat/call2.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
`{
2-
"Model": "gpt-4-turbo",
2+
"Model": "gpt-4o",
33
"InternalSystemPrompt": false,
44
"Tools": null,
55
"Messages": [

pkg/tests/testdata/TestChatRunNoError/call1.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
`{
2-
"Model": "gpt-4-turbo",
2+
"Model": "gpt-4o",
33
"InternalSystemPrompt": false,
44
"Tools": null,
55
"Messages": [

pkg/tests/testdata/TestContext/call1.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
`{
2-
"Model": "gpt-4-turbo",
2+
"Model": "gpt-4o",
33
"InternalSystemPrompt": null,
44
"Tools": null,
55
"Messages": [

pkg/tests/testdata/TestContextArg/call1.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
`{
2-
"Model": "gpt-4-turbo",
2+
"Model": "gpt-4o",
33
"InternalSystemPrompt": null,
44
"Tools": null,
55
"Messages": [

pkg/tests/testdata/TestContextSubChat/call1.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
`{
2-
"Model": "gpt-4-turbo",
2+
"Model": "gpt-4o",
33
"InternalSystemPrompt": null,
44
"Tools": [
55
{

pkg/tests/testdata/TestContextSubChat/call10.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
`{
2-
"Model": "gpt-4-turbo",
2+
"Model": "gpt-4o",
33
"InternalSystemPrompt": false,
44
"Tools": null,
55
"Messages": [

pkg/tests/testdata/TestContextSubChat/call2.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
`{
2-
"Model": "gpt-4-turbo",
2+
"Model": "gpt-4o",
33
"InternalSystemPrompt": false,
44
"Tools": [
55
{

pkg/tests/testdata/TestContextSubChat/call3.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
`{
2-
"Model": "gpt-4-turbo",
2+
"Model": "gpt-4o",
33
"InternalSystemPrompt": false,
44
"Tools": [
55
{

pkg/tests/testdata/TestContextSubChat/call4.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
`{
2-
"Model": "gpt-4-turbo",
2+
"Model": "gpt-4o",
33
"InternalSystemPrompt": null,
44
"Tools": [
55
{

pkg/tests/testdata/TestContextSubChat/call5.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
`{
2-
"Model": "gpt-4-turbo",
2+
"Model": "gpt-4o",
33
"InternalSystemPrompt": false,
44
"Tools": null,
55
"Messages": [

pkg/tests/testdata/TestContextSubChat/call6.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
`{
2-
"Model": "gpt-4-turbo",
2+
"Model": "gpt-4o",
33
"InternalSystemPrompt": null,
44
"Tools": [
55
{

pkg/tests/testdata/TestContextSubChat/call7.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
`{
2-
"Model": "gpt-4-turbo",
2+
"Model": "gpt-4o",
33
"InternalSystemPrompt": false,
44
"Tools": [
55
{

pkg/tests/testdata/TestContextSubChat/call8.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
`{
2-
"Model": "gpt-4-turbo",
2+
"Model": "gpt-4o",
33
"InternalSystemPrompt": false,
44
"Tools": [
55
{

pkg/tests/testdata/TestContextSubChat/call9.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
`{
2-
"Model": "gpt-4-turbo",
2+
"Model": "gpt-4o",
33
"InternalSystemPrompt": null,
44
"Tools": [
55
{

pkg/tests/testdata/TestContextSubChat/step1.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"continuation": {
88
"state": {
99
"completion": {
10-
"Model": "gpt-4-turbo",
10+
"Model": "gpt-4o",
1111
"InternalSystemPrompt": null,
1212
"Tools": [
1313
{
@@ -78,7 +78,7 @@
7878
"state": {
7979
"input": "Input to chatbot1",
8080
"completion": {
81-
"Model": "gpt-4-turbo",
81+
"Model": "gpt-4o",
8282
"InternalSystemPrompt": false,
8383
"Tools": [
8484
{

pkg/tests/testdata/TestContextSubChat/step2.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"state": {
88
"input": "User 1",
99
"completion": {
10-
"Model": "gpt-4-turbo",
10+
"Model": "gpt-4o",
1111
"InternalSystemPrompt": false,
1212
"Tools": null,
1313
"Messages": [

pkg/tests/testdata/TestContextSubChat/step3.golden

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"state": {
88
"input": "User 1",
99
"completion": {
10-
"Model": "gpt-4-turbo",
10+
"Model": "gpt-4o",
1111
"InternalSystemPrompt": false,
1212
"Tools": null,
1313
"Messages": [
@@ -54,7 +54,7 @@
5454
"continuation": {
5555
"state": {
5656
"completion": {
57-
"Model": "gpt-4-turbo",
57+
"Model": "gpt-4o",
5858
"InternalSystemPrompt": null,
5959
"Tools": [
6060
{
@@ -125,7 +125,7 @@
125125
"state": {
126126
"input": "Input to chatbot1 on resume",
127127
"completion": {
128-
"Model": "gpt-4-turbo",
128+
"Model": "gpt-4o",
129129
"InternalSystemPrompt": false,
130130
"Tools": [
131131
{

pkg/tests/testdata/TestContextSubChat/step4.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"state": {
88
"input": "User 1",
99
"completion": {
10-
"Model": "gpt-4-turbo",
10+
"Model": "gpt-4o",
1111
"InternalSystemPrompt": false,
1212
"Tools": null,
1313
"Messages": [

pkg/tests/testdata/TestCwd/call1.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
`{
2-
"Model": "gpt-4-turbo",
2+
"Model": "gpt-4o",
33
"InternalSystemPrompt": null,
44
"Tools": [
55
{

pkg/tests/testdata/TestCwd/call2.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
`{
2-
"Model": "gpt-4-turbo",
2+
"Model": "gpt-4o",
33
"InternalSystemPrompt": null,
44
"Tools": [
55
{

pkg/tests/testdata/TestCwd/call3.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
`{
2-
"Model": "gpt-4-turbo",
2+
"Model": "gpt-4o",
33
"InternalSystemPrompt": null,
44
"Tools": [
55
{

pkg/tests/testdata/TestDualSubChat/call1.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
`{
2-
"Model": "gpt-4-turbo",
2+
"Model": "gpt-4o",
33
"InternalSystemPrompt": null,
44
"Tools": [
55
{

pkg/tests/testdata/TestDualSubChat/call2.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
`{
2-
"Model": "gpt-4-turbo",
2+
"Model": "gpt-4o",
33
"InternalSystemPrompt": false,
44
"Tools": [
55
{

pkg/tests/testdata/TestDualSubChat/call3.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
`{
2-
"Model": "gpt-4-turbo",
2+
"Model": "gpt-4o",
33
"InternalSystemPrompt": false,
44
"Tools": [
55
{

pkg/tests/testdata/TestDualSubChat/call4.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
`{
2-
"Model": "gpt-4-turbo",
2+
"Model": "gpt-4o",
33
"InternalSystemPrompt": false,
44
"Tools": [
55
{

pkg/tests/testdata/TestDualSubChat/call5.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
`{
2-
"Model": "gpt-4-turbo",
2+
"Model": "gpt-4o",
33
"InternalSystemPrompt": false,
44
"Tools": [
55
{

pkg/tests/testdata/TestDualSubChat/call6.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
`{
2-
"Model": "gpt-4-turbo",
2+
"Model": "gpt-4o",
33
"InternalSystemPrompt": false,
44
"Tools": [
55
{

pkg/tests/testdata/TestDualSubChat/call7.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
`{
2-
"Model": "gpt-4-turbo",
2+
"Model": "gpt-4o",
33
"InternalSystemPrompt": null,
44
"Tools": [
55
{

pkg/tests/testdata/TestDualSubChat/step1.golden

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"state": {
88
"input": "User 1",
99
"completion": {
10-
"Model": "gpt-4-turbo",
10+
"Model": "gpt-4o",
1111
"InternalSystemPrompt": null,
1212
"Tools": [
1313
{
@@ -116,7 +116,7 @@
116116
"state": {
117117
"input": "Input to chatbot1",
118118
"completion": {
119-
"Model": "gpt-4-turbo",
119+
"Model": "gpt-4o",
120120
"InternalSystemPrompt": false,
121121
"Tools": [
122122
{
@@ -185,7 +185,7 @@
185185
"state": {
186186
"input": "Input to chatbot2",
187187
"completion": {
188-
"Model": "gpt-4-turbo",
188+
"Model": "gpt-4o",
189189
"InternalSystemPrompt": false,
190190
"Tools": [
191191
{

pkg/tests/testdata/TestDualSubChat/step2.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"state": {
88
"input": "User 1",
99
"completion": {
10-
"Model": "gpt-4-turbo",
10+
"Model": "gpt-4o",
1111
"InternalSystemPrompt": null,
1212
"Tools": [
1313
{
@@ -123,7 +123,7 @@
123123
"state": {
124124
"input": "Input to chatbot2",
125125
"completion": {
126-
"Model": "gpt-4-turbo",
126+
"Model": "gpt-4o",
127127
"InternalSystemPrompt": false,
128128
"Tools": [
129129
{

pkg/tests/testdata/TestDualSubChat/step3.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"state": {
88
"input": "User 1",
99
"completion": {
10-
"Model": "gpt-4-turbo",
10+
"Model": "gpt-4o",
1111
"InternalSystemPrompt": null,
1212
"Tools": [
1313
{
@@ -123,7 +123,7 @@
123123
"state": {
124124
"input": "Input to chatbot2",
125125
"completion": {
126-
"Model": "gpt-4-turbo",
126+
"Model": "gpt-4o",
127127
"InternalSystemPrompt": false,
128128
"Tools": [
129129
{

pkg/tests/testdata/TestExport/call1.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
`{
2-
"Model": "gpt-4-turbo",
2+
"Model": "gpt-4o",
33
"InternalSystemPrompt": null,
44
"Tools": [
55
{

pkg/tests/testdata/TestExport/call2.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
`{
2-
"Model": "gpt-4-turbo",
2+
"Model": "gpt-4o",
33
"InternalSystemPrompt": null,
44
"Tools": null,
55
"Messages": [

pkg/tests/testdata/TestExport/call3.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
`{
2-
"Model": "gpt-4-turbo",
2+
"Model": "gpt-4o",
33
"InternalSystemPrompt": null,
44
"Tools": [
55
{

pkg/tests/testdata/TestExportContext/call1.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
`{
2-
"Model": "gpt-4-turbo",
2+
"Model": "gpt-4o",
33
"InternalSystemPrompt": null,
44
"Tools": [
55
{

pkg/tests/testdata/TestSubChat/call1.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
`{
2-
"Model": "gpt-4-turbo",
2+
"Model": "gpt-4o",
33
"InternalSystemPrompt": null,
44
"Tools": [
55
{

pkg/tests/testdata/TestSubChat/call2.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
`{
2-
"Model": "gpt-4-turbo",
2+
"Model": "gpt-4o",
33
"InternalSystemPrompt": false,
44
"Tools": null,
55
"Messages": [

pkg/tests/testdata/TestSubChat/call3.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
`{
2-
"Model": "gpt-4-turbo",
2+
"Model": "gpt-4o",
33
"InternalSystemPrompt": false,
44
"Tools": null,
55
"Messages": [

pkg/tests/testdata/TestToolAs/call1.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
`{
2-
"Model": "gpt-4-turbo",
2+
"Model": "gpt-4o",
33
"InternalSystemPrompt": null,
44
"Tools": [
55
{

0 commit comments

Comments
 (0)