Skip to content

Commit fa22647

Browse files
committed
Output Ollama version when it is launched
1 parent dd5d82f commit fa22647

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/local_instance.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ def start():
2828
logger.debug(params)
2929
sleep(1)
3030
logger.info("Started Alpaca's Ollama instance")
31+
v_str = subprocess.check_output("ollama -v", shell=True).decode('utf-8')
32+
logger.info('Ollama version: {}'.format(v_str.split('client version is ')[1].strip()))
3133

3234
def stop():
3335
logger.info("Stopping Alpaca's Ollama instance")

0 commit comments

Comments
 (0)