ollama icon indicating copy to clipboard operation
ollama copied to clipboard

:thought_balloon: Feature request > make it possible to remove the "thinking" animation "⠙ ⠹ ⠸"

Open adriens opened this issue 2 years ago • 2 comments

:grey_question: About

In some usecases, I would need to get rid of the cli thinking animation:

⠙ ⠹ ⠹ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏ ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏ ⠋ ⠋ ⠹ ⠹ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏ ⠏ ⠋ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏ 
⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏ ⠋ ⠙ ⠹ ⠸ ⠸ ⠼ ⠴ ⠦ ⠧ ⠏ ⠏ ⠙ ⠙ ⠸ ⠸ ⠴ ⠦ ⠧ ⠇ ⠏ ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇
⠏ ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏ ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏ ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠦ ⠧ ⠇ ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠦
⠧ ⠏ ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏ ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏ ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏ ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦
⠧ ⠇ ⠏ ⠋ ⠙ ⠙ ⠹ ⠸ ⠴ ⠴ ⠦ ⠇ ⠏ ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏ ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏ ⠋ ⠙ ⠹ ⠸ ⠼ 
⠴ ⠦ ⠧ ⠇ ⠏ ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏ ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏ ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏ ⠋ ⠙ ⠹ 
 ⠼ ⠴ ⠦ ⠧ ⠇ ⠏ ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏ ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏ ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ 

:bulb: Feature request

Would it possible, when we run a ollama run command to remove the animation ?

This would look like:

  1. ollama run zephyr --silent "What is the meaning of life?"
  2. Wait while thinking (nofeedback provided because of the --silent option)
  3. See the answer streaming in the terminal

adriens avatar Dec 22 '23 23:12 adriens

Hey @adriens is the animation getting animated incorrectly? I'm just wondering what the use case is.

pdevine avatar Jan 25 '24 22:01 pdevine

Hi @pdevine , thanks for the followup, here is the current behavior. :point_right: Everything runs perfectly well on a classis terminal

, it's in the very specific case when running on a Jupyter Notebook, see 🦙 ollama running local models w/LlamaIndex (CPU) below :

image

Hope this helps :crossed_fingers:

adriens avatar Jan 26 '24 03:01 adriens

@adriens Have you tried out the new python bindings?

Screenshot 2024-01-28 at 12 52 21 PM

pdevine avatar Jan 28 '24 20:01 pdevine

Not yet, but I will :

  • #2242

adriens avatar Jan 28 '24 21:01 adriens

:thought_balloon: The next time I work on ollama, I'll use python sdk :muscle: :sunglasses: :star_struck:

adriens avatar Jan 28 '24 21:01 adriens

@adriens are you OK to close the issue? I'm not sure we need this, but can always reopen in the future.

pdevine avatar Jan 28 '24 23:01 pdevine

@adriens are you OK to close the issue? I'm not sure we need this, but can always reopen in the future.

Yup :ok_hand: It's rather a proposal :thought_balloon:

adriens avatar Jan 29 '24 20:01 adriens