Skip to content

Commit 2b05ed3

Browse files
committed
checkpoint: 2025/09/02 13:28:02
1 parent 615d767 commit 2b05ed3

File tree

8 files changed

+12
-46
lines changed

8 files changed

+12
-46
lines changed

cmd/chat.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ through natural language interaction.
4545
Examples:
4646
coda chat # Start a new chat session
4747
coda chat --continue # Continue the last session
48-
coda chat --model gpt-4 # Use a specific model`,
48+
coda chat --model o4-mini # Use a specific model`,
4949
RunE: runChat,
5050
}
5151

cmd/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ var setCmd = &cobra.Command{
5050
Long: `Set a configuration value.
5151
5252
Examples:
53-
coda config set ai.model gpt-4
54-
coda config set ai.temperature 0.7
53+
coda config set ai.model o4-mini
54+
coda config set ai.temperature 1
5555
coda config set logging.level debug`,
5656
Args: cobra.ExactArgs(2),
5757
RunE: runConfigSet,

internal/ai/openai.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ func (c *OpenAIClient) convertChatRequest(req ChatRequest) (openai.ChatCompletio
181181
if c.config.Model != "" {
182182
openaiReq.Model = c.config.Model
183183
} else {
184-
openaiReq.Model = ModelGPT4Turbo
184+
openaiReq.Model = "gpt-4-turbo"
185185
}
186186
}
187187

internal/ai/types.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,8 @@ const (
1717

1818
// Common model name constants for easy reference.
1919
const (
20-
ModelGPT4 = "gpt-4"
21-
ModelGPT4Turbo = "gpt-4-turbo"
22-
ModelGPT4Vision = "gpt-4-vision-preview"
23-
ModelGPT35Turbo = "gpt-3.5-turbo"
24-
ModelGPT35Turbo16k = "gpt-3.5-turbo-16k"
25-
ModelO3 = "o3"
26-
ModelGPT5 = "gpt-5"
20+
ModelO3 = "o3"
21+
ModelGPT5 = "gpt-5"
2722
)
2823

2924
// Default values for various parameters.

internal/config/config.example.yaml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ ai:
1010
# api_key: your-api-key-here
1111

1212
# Model to use
13-
model: gpt-4
13+
model: o3
1414

1515
# Temperature (0-2, default: 0.7)
16-
temperature: 0.7
16+
temperature: 1
1717

1818
# Maximum tokens for response
19-
max_tokens: 4096
19+
max_tokens: 0
2020

2121
# OpenAI specific settings
2222
openai:
@@ -39,14 +39,6 @@ ai:
3939

4040
# Tools Configuration
4141
tools:
42-
# Enabled tools
43-
enabled:
44-
- read_file
45-
- write_file
46-
- edit_file
47-
- list_files
48-
- search_files
49-
5042
# Workspace root directory
5143
workspace_root: "."
5244

internal/config/config.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,6 @@ type AzureConfig struct {
8282

8383
// ToolsConfig contains tools related configuration
8484
type ToolsConfig struct {
85-
// Enable/disable specific tools
86-
Enabled []string `yaml:"enabled" json:"enabled"`
87-
8885
// Workspace root for file operations
8986
WorkspaceRoot string `yaml:"workspace_root" json:"workspace_root"`
9087

@@ -160,7 +157,6 @@ func NewDefaultConfig() *Config {
160157
},
161158
},
162159
Tools: ToolsConfig{
163-
Enabled: []string{"read_file", "write_file", "edit_file", "list_files", "search_files"},
164160
WorkspaceRoot: getEnvOrDefault("CODA_WORKSPACE", "."),
165161
FileAccess: FileAccessConfig{
166162
AllowedPaths: []string{"**/*"},

internal/config/config_test.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,6 @@ func TestNewDefaultConfig(t *testing.T) {
6666
assert.Equal(t, "test-deployment", cfg.AI.Azure.DeploymentName)
6767
})
6868

69-
t.Run("default enabled tools", func(t *testing.T) {
70-
cfg := NewDefaultConfig()
71-
72-
expectedTools := []string{"read_file", "write_file", "edit_file", "list_files", "search_files"}
73-
assert.Equal(t, expectedTools, cfg.Tools.Enabled)
74-
})
7569

7670
t.Run("default denied paths", func(t *testing.T) {
7771
cfg := NewDefaultConfig()

internal/config/loader.go

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,6 @@ func mergeConfig(dst, src *Config) error {
207207
}
208208

209209
// Merge Tools config
210-
if len(src.Tools.Enabled) > 0 {
211-
dst.Tools.Enabled = src.Tools.Enabled
212-
}
213210
if src.Tools.WorkspaceRoot != "" {
214211
dst.Tools.WorkspaceRoot = src.Tools.WorkspaceRoot
215212
}
@@ -397,13 +394,13 @@ ai:
397394
# api_key: your-api-key-here
398395
399396
# Model to use
400-
model: gpt-4
397+
model: o3
401398
402399
# Temperature (0-2, default: 0.7)
403-
temperature: 0.7
400+
temperature: 1
404401
405402
# Maximum tokens for response
406-
max_tokens: 4096
403+
max_tokens: 0
407404
408405
# OpenAI specific settings
409406
openai:
@@ -426,14 +423,6 @@ ai:
426423
427424
# Tools Configuration
428425
tools:
429-
# Enabled tools
430-
enabled:
431-
- read_file
432-
- write_file
433-
- edit_file
434-
- list_files
435-
- search_files
436-
437426
# Workspace root directory
438427
workspace_root: "."
439428

0 commit comments

Comments
 (0)