Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is there a limit on the number of lines/tokens it can take as input? Can it be increased? The limit seems to be somewhere above 30 lines.

I'm on a MacBook Pro M1 Max 64GB.

    % ollama --version
    ollama version 0.0.16
    % ollama run phind-codellama "$(cat prompt.txt)"
    ⠧   Error: Post "http://localhost:11434/api/generate": EOF
    % wc prompt.txt
         335    1481   11457 prompt.txt


This feature was surprisingly hard to find, but you can wrap multi line in “””. So start off with “””, then type or new line (with enter) anything you want, then close with “”” and it’ll run the whole prompt. (“”” is 3 parenthesis quote, the formatting from HN is making it look funny)


>3 parenthesis quote

Do you mean triple double quotes?


That's what I've been using but still get that error.


Same here, would be interested to know if there's a solution!

I created an issue, if you have an example prompt to add that would be helpful! https://github.com/jmorganca/ollama/issues/422


Thanks for creating an issue! And sorry for the error folks… working on it!


Haha no need to apologise! Thanks for an amazing project :)


Datapoint here on an M1Max Macbook Pro: I use the triple doublequotes and I'm not getting that error




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: