Skip to content

Commit

Permalink
Output Ollama version when it is launched
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffser committed Aug 5, 2024
1 parent dd5d82f commit fa22647
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/local_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ def start():
logger.debug(params)
sleep(1)
logger.info("Started Alpaca's Ollama instance")
v_str = subprocess.check_output("ollama -v", shell=True).decode('utf-8')
logger.info('Ollama version: {}'.format(v_str.split('client version is ')[1].strip()))

def stop():
logger.info("Stopping Alpaca's Ollama instance")
Expand Down

0 comments on commit fa22647

Please sign in to comment.