Skip to content

Commit f0e7993

Browse files
authored
Merge pull request #1539 from containers/dedepu
Deduplicate code
2 parents 4382641 + d62f9d0 commit f0e7993

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

ramalama/chat.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@
1212

1313
from ramalama.config import CONFIG
1414
from ramalama.console import EMOJI
15-
16-
17-
def should_colorize():
18-
t = os.getenv("TERM")
19-
return t and t != "dumb" and sys.stdout.isatty()
15+
from ramalama.model import should_colorize
2016

2117

2218
def res(response, color):

0 commit comments

Comments
 (0)