Skip to content

chore: change default model to gpt4o #356

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/openai/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
)

const (
DefaultModel = openai.GPT4Turbo
DefaultModel = openai.GPT4o
)

var (
Expand All @@ -45,7 +45,7 @@ type Options struct {
APIVersion string `usage:"OpenAI API Version (for Azure)" name:"openai-api-version" env:"OPENAI_API_VERSION"`
APIType openai.APIType `usage:"OpenAI API Type (valid: OPEN_AI, AZURE, AZURE_AD)" name:"openai-api-type" env:"OPENAI_API_TYPE"`
OrgID string `usage:"OpenAI organization ID" name:"openai-org-id" env:"OPENAI_ORG_ID"`
DefaultModel string `usage:"Default LLM model to use" default:"gpt-4-turbo"`
DefaultModel string `usage:"Default LLM model to use" default:"gpt-4o"`
ConfigFile string `usage:"Path to GPTScript config file" name:"config"`
SetSeed bool `usage:"-"`
CacheKey string `usage:"-"`
Expand Down
2 changes: 1 addition & 1 deletion pkg/tests/testdata/TestCase/call1.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
`{
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": null,
"Tools": [
{
Expand Down
2 changes: 1 addition & 1 deletion pkg/tests/testdata/TestCase2/call1.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
`{
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": null,
"Tools": [
{
Expand Down
2 changes: 1 addition & 1 deletion pkg/tests/testdata/TestChat/call1.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
`{
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": false,
"Tools": null,
"Messages": [
Expand Down
2 changes: 1 addition & 1 deletion pkg/tests/testdata/TestChat/call2.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
`{
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": false,
"Tools": null,
"Messages": [
Expand Down
2 changes: 1 addition & 1 deletion pkg/tests/testdata/TestChatRunNoError/call1.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
`{
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": false,
"Tools": null,
"Messages": [
Expand Down
2 changes: 1 addition & 1 deletion pkg/tests/testdata/TestContext/call1.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
`{
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": null,
"Tools": null,
"Messages": [
Expand Down
2 changes: 1 addition & 1 deletion pkg/tests/testdata/TestContextArg/call1.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
`{
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": null,
"Tools": null,
"Messages": [
Expand Down
2 changes: 1 addition & 1 deletion pkg/tests/testdata/TestContextSubChat/call1.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
`{
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": null,
"Tools": [
{
Expand Down
2 changes: 1 addition & 1 deletion pkg/tests/testdata/TestContextSubChat/call10.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
`{
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": false,
"Tools": null,
"Messages": [
Expand Down
2 changes: 1 addition & 1 deletion pkg/tests/testdata/TestContextSubChat/call2.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
`{
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": false,
"Tools": [
{
Expand Down
2 changes: 1 addition & 1 deletion pkg/tests/testdata/TestContextSubChat/call3.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
`{
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": false,
"Tools": [
{
Expand Down
2 changes: 1 addition & 1 deletion pkg/tests/testdata/TestContextSubChat/call4.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
`{
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": null,
"Tools": [
{
Expand Down
2 changes: 1 addition & 1 deletion pkg/tests/testdata/TestContextSubChat/call5.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
`{
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": false,
"Tools": null,
"Messages": [
Expand Down
2 changes: 1 addition & 1 deletion pkg/tests/testdata/TestContextSubChat/call6.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
`{
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": null,
"Tools": [
{
Expand Down
2 changes: 1 addition & 1 deletion pkg/tests/testdata/TestContextSubChat/call7.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
`{
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": false,
"Tools": [
{
Expand Down
2 changes: 1 addition & 1 deletion pkg/tests/testdata/TestContextSubChat/call8.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
`{
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": false,
"Tools": [
{
Expand Down
2 changes: 1 addition & 1 deletion pkg/tests/testdata/TestContextSubChat/call9.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
`{
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": null,
"Tools": [
{
Expand Down
4 changes: 2 additions & 2 deletions pkg/tests/testdata/TestContextSubChat/step1.golden
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"continuation": {
"state": {
"completion": {
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": null,
"Tools": [
{
Expand Down Expand Up @@ -78,7 +78,7 @@
"state": {
"input": "Input to chatbot1",
"completion": {
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": false,
"Tools": [
{
Expand Down
2 changes: 1 addition & 1 deletion pkg/tests/testdata/TestContextSubChat/step2.golden
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"state": {
"input": "User 1",
"completion": {
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": false,
"Tools": null,
"Messages": [
Expand Down
6 changes: 3 additions & 3 deletions pkg/tests/testdata/TestContextSubChat/step3.golden
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"state": {
"input": "User 1",
"completion": {
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": false,
"Tools": null,
"Messages": [
Expand Down Expand Up @@ -54,7 +54,7 @@
"continuation": {
"state": {
"completion": {
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": null,
"Tools": [
{
Expand Down Expand Up @@ -125,7 +125,7 @@
"state": {
"input": "Input to chatbot1 on resume",
"completion": {
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": false,
"Tools": [
{
Expand Down
2 changes: 1 addition & 1 deletion pkg/tests/testdata/TestContextSubChat/step4.golden
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"state": {
"input": "User 1",
"completion": {
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": false,
"Tools": null,
"Messages": [
Expand Down
2 changes: 1 addition & 1 deletion pkg/tests/testdata/TestCwd/call1.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
`{
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": null,
"Tools": [
{
Expand Down
2 changes: 1 addition & 1 deletion pkg/tests/testdata/TestCwd/call2.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
`{
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": null,
"Tools": [
{
Expand Down
2 changes: 1 addition & 1 deletion pkg/tests/testdata/TestCwd/call3.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
`{
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": null,
"Tools": [
{
Expand Down
2 changes: 1 addition & 1 deletion pkg/tests/testdata/TestDualSubChat/call1.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
`{
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": null,
"Tools": [
{
Expand Down
2 changes: 1 addition & 1 deletion pkg/tests/testdata/TestDualSubChat/call2.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
`{
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": false,
"Tools": [
{
Expand Down
2 changes: 1 addition & 1 deletion pkg/tests/testdata/TestDualSubChat/call3.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
`{
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": false,
"Tools": [
{
Expand Down
2 changes: 1 addition & 1 deletion pkg/tests/testdata/TestDualSubChat/call4.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
`{
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": false,
"Tools": [
{
Expand Down
2 changes: 1 addition & 1 deletion pkg/tests/testdata/TestDualSubChat/call5.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
`{
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": false,
"Tools": [
{
Expand Down
2 changes: 1 addition & 1 deletion pkg/tests/testdata/TestDualSubChat/call6.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
`{
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": false,
"Tools": [
{
Expand Down
2 changes: 1 addition & 1 deletion pkg/tests/testdata/TestDualSubChat/call7.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
`{
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": null,
"Tools": [
{
Expand Down
6 changes: 3 additions & 3 deletions pkg/tests/testdata/TestDualSubChat/step1.golden
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"state": {
"input": "User 1",
"completion": {
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": null,
"Tools": [
{
Expand Down Expand Up @@ -116,7 +116,7 @@
"state": {
"input": "Input to chatbot1",
"completion": {
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": false,
"Tools": [
{
Expand Down Expand Up @@ -185,7 +185,7 @@
"state": {
"input": "Input to chatbot2",
"completion": {
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": false,
"Tools": [
{
Expand Down
4 changes: 2 additions & 2 deletions pkg/tests/testdata/TestDualSubChat/step2.golden
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"state": {
"input": "User 1",
"completion": {
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": null,
"Tools": [
{
Expand Down Expand Up @@ -123,7 +123,7 @@
"state": {
"input": "Input to chatbot2",
"completion": {
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": false,
"Tools": [
{
Expand Down
4 changes: 2 additions & 2 deletions pkg/tests/testdata/TestDualSubChat/step3.golden
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"state": {
"input": "User 1",
"completion": {
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": null,
"Tools": [
{
Expand Down Expand Up @@ -123,7 +123,7 @@
"state": {
"input": "Input to chatbot2",
"completion": {
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": false,
"Tools": [
{
Expand Down
2 changes: 1 addition & 1 deletion pkg/tests/testdata/TestExport/call1.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
`{
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": null,
"Tools": [
{
Expand Down
2 changes: 1 addition & 1 deletion pkg/tests/testdata/TestExport/call2.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
`{
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": null,
"Tools": null,
"Messages": [
Expand Down
2 changes: 1 addition & 1 deletion pkg/tests/testdata/TestExport/call3.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
`{
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": null,
"Tools": [
{
Expand Down
2 changes: 1 addition & 1 deletion pkg/tests/testdata/TestExportContext/call1.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
`{
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": null,
"Tools": [
{
Expand Down
2 changes: 1 addition & 1 deletion pkg/tests/testdata/TestSubChat/call1.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
`{
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": null,
"Tools": [
{
Expand Down
2 changes: 1 addition & 1 deletion pkg/tests/testdata/TestSubChat/call2.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
`{
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": false,
"Tools": null,
"Messages": [
Expand Down
2 changes: 1 addition & 1 deletion pkg/tests/testdata/TestSubChat/call3.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
`{
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": false,
"Tools": null,
"Messages": [
Expand Down
2 changes: 1 addition & 1 deletion pkg/tests/testdata/TestToolAs/call1.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
`{
"Model": "gpt-4-turbo",
"Model": "gpt-4o",
"InternalSystemPrompt": null,
"Tools": [
{
Expand Down