feat: add phase 3 readonly models
This commit is contained in:
@@ -6,15 +6,17 @@ import (
|
||||
)
|
||||
|
||||
type Config struct {
|
||||
CodexHome string
|
||||
HTTPAddr string
|
||||
CodexHome string
|
||||
HTTPAddr string
|
||||
WorkspaceRoot string
|
||||
}
|
||||
|
||||
func DefaultConfig() Config {
|
||||
if codexHome := os.Getenv("CODEX_HOME"); codexHome != "" {
|
||||
return Config{
|
||||
CodexHome: codexHome,
|
||||
HTTPAddr: "127.0.0.1:18083",
|
||||
CodexHome: codexHome,
|
||||
HTTPAddr: "127.0.0.1:18083",
|
||||
WorkspaceRoot: ".",
|
||||
}
|
||||
}
|
||||
home, err := os.UserHomeDir()
|
||||
@@ -22,7 +24,8 @@ func DefaultConfig() Config {
|
||||
home = "."
|
||||
}
|
||||
return Config{
|
||||
CodexHome: filepath.Join(home, ".codex"),
|
||||
HTTPAddr: "127.0.0.1:18083",
|
||||
CodexHome: filepath.Join(home, ".codex"),
|
||||
HTTPAddr: "127.0.0.1:18083",
|
||||
WorkspaceRoot: ".",
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user