Repository navigation
Codex mini - #34
Codex mini#34
Conversation
|
nice lol |
…#34) Previous patterns used incorrect glob syntax that didn't match AWS CLI command format: - Wrong: aws */describe* (expected slash) - Wrong: aws *:create* (expected colon) - Actual AWS CLI: aws ec2 describe-instances (space-separated) Fixed all 30+ patterns to use correct format: - Correct: aws * describe* (space wildcard space action) - Matches: aws <service> <action> format Changes applied to both personal and work configs. Enables research-specialist to actually query AWS services.
| "github.com/openai/openai-go/shared" | ||
| "github.com/sst/opencode/internal/config" | ||
| "github.com/sst/opencode/internal/status" | ||
| ) |
There was a problem hiding this comment.
Suggestion (import ordering): Standard library imports should come first, then external packages, then internal packages. Consider reordering imports like this:
import (
"context"
"encoding/json"
"errors"
"fmt"
"io"
"log/slog"
"time"
"github.com/openai/openai-go"
"github.com/openai/openai-go/responses"
"github.com/openai/openai-go/shared"
"github.com/sst/opencode/internal/config"
"github.com/sst/opencode/internal/llm/models"
"github.com/sst/opencode/internal/llm/tools"
"github.com/sst/opencode/internal/message"
"github.com/sst/opencode/internal/status"
)This is a minor suggestion for consistency with the style guide.
| Messages: messages, | ||
| Tools: tools, | ||
| } | ||
| if o.providerOptions.model.CanReason == true { |
There was a problem hiding this comment.
Suggestion (style): Using == true is redundant in Go. Consider simplifying to just if o.providerOptions.model.CanReason {. This is a minor nitpick for Go idiomatic style.
|
|
||
| params.MaxOutputTokens = openai.Int(o.providerOptions.maxTokens) | ||
|
|
||
| if o.providerOptions.model.CanReason == true { |
There was a problem hiding this comment.
Suggestion (style): Same here - using == true is redundant in Go. Consider simplifying to just if o.providerOptions.model.CanReason {.
|
|
||
| return outputTools | ||
| } | ||
|
|
There was a problem hiding this comment.
Suggestion (formatting): There are multiple consecutive blank lines here. Running go fmt should fix this - standard Go formatting uses single blank lines for separation.
Code Review SummaryI've reviewed the PR changes (note: the actual changes are related to OpenAI provider refactoring and adding Codex Mini support, not TUI rendering as mentioned in the description). Minor Suggestions (all optional):
OverallThe code logic looks solid. The refactoring to split chat completion and response APIs into separate files is a good approach for maintainability. The new Codex Mini model integration follows the existing patterns well. These are all minor suggestions - feel free to address them or leave as-is based on your preference. |
Closes #27