Skip to content

Commit 8740c90

Browse files
committed
updated model version consistently to "gpt-4.1-nano" in various files
Signed-off-by: Erin La <[email protected]>
1 parent bd6ea2e commit 8740c90

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

conversation/metadata_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func TestLangchainMetadata(t *testing.T) {
2525
t.Run("json marshaling with endpoint", func(t *testing.T) {
2626
metadata := LangchainMetadata{
2727
Key: "test-key",
28-
Model: "gpt-4",
28+
Model: "gpt-4.1-nano",
2929
CacheTTL: "10m",
3030
Endpoint: "https://custom-endpoint.example.com",
3131
}

conversation/openai/metadata.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ metadata:
2424
- name: model
2525
required: false
2626
description: |
27-
The OpenAI LLM to use. Defaults to gpt-4o
27+
The OpenAI LLM to use. Defaults to gpt-4.1-nano
2828
type: string
29-
example: 'gpt-4-turbo'
29+
example: 'gpt-4.1-nano'
3030
- name: endpoint
3131
required: false
3232
description: |

conversation/openai/openai.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func NewOpenAI(logger logger.Logger) conversation.Conversation {
4141
return o
4242
}
4343

44-
const defaultModel = "gpt-4o"
44+
const defaultModel = "gpt-4.1-nano"
4545

4646
func (o *OpenAI) Init(ctx context.Context, meta conversation.Metadata) error {
4747
md := conversation.LangchainMetadata{}

conversation/openai/openai_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func TestInit(t *testing.T) {
3434
name: "with default endpoint",
3535
metadata: map[string]string{
3636
"key": "test-key",
37-
"model": "gpt-4",
37+
"model": "gpt-4.1-nano",
3838
},
3939
testFn: func(t *testing.T, o *OpenAI, err error) {
4040
require.NoError(t, err)
@@ -45,7 +45,7 @@ func TestInit(t *testing.T) {
4545
name: "with custom endpoint",
4646
metadata: map[string]string{
4747
"key": "test-key",
48-
"model": "gpt-4",
48+
"model": "gpt-4.1-nano",
4949
"endpoint": "https://api.openai.com/v1",
5050
},
5151
testFn: func(t *testing.T, o *OpenAI, err error) {

tests/config/conversation/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Requires a local Ollama server running with the `llama3.2:latest` model availabl
9595
Each component has its own configuration file in this directory:
9696

9797
- `echo/echo.yml` - Echo component configuration
98-
- `openai/openai.yml` - OpenAI configuration with gpt-4o-mini model
98+
- `openai/openai.yml` - OpenAI configuration with gpt-4.1-nano model
9999
- `anthropic/anthropic.yml` - Anthropic configuration with Claude 3 Haiku
100100
- `googleai/googleai.yml` - Google AI configuration with Gemini 1.5 Flash
101101
- `mistral/mistral.yml` - Mistral configuration with open-mistral-7b

tests/config/conversation/openai/openai.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ spec:
99
- name: key
1010
value: "${{OPENAI_API_KEY}}"
1111
- name: model
12-
value: "gpt-4o-mini"
12+
value: "gpt-4.1-nano"

0 commit comments

Comments
 (0)