Skip to content

Commit 0f245c9

Browse files
committed
Update colors in chat interface using configuration settings
1 parent b1e1b07 commit 0f245c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/chat.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,17 @@ No code context is passed in this mode. Emulates web chat.`,
4747

4848
client := openai.NewClient(conf.APIKey)
4949

50-
utils.PrintColoredText("Otto: ", "#008080")
50+
utils.PrintColoredText("Otto: ", conf.OttoColor)
5151
fmt.Println("Hello! I am Otto. Use Ctrl+C to exit at any time.")
5252

5353
for {
54-
question, err := utils.InputWithColor("You: ", "#007bff")
54+
question, err := utils.InputWithColor("You: ", conf.UserColor)
5555
if err != nil {
5656
log.Error(err)
5757
os.Exit(1)
5858
}
5959

60-
utils.PrintColoredText("Otto: ", "#008080")
60+
utils.PrintColoredText("Otto: ", conf.OttoColor)
6161

6262
log.Debugf("Adding question '%s' to context...", question)
6363

0 commit comments

Comments
 (0)