Skip to content

Commit 44a299c

Browse files
committed
Deduplicate code
So there is only one version of this function Signed-off-by: Eric Curtin <[email protected]>
1 parent 7955e29 commit 44a299c

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)