Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to get only the OUTPUT? #8

Open
pleabargain opened this issue Nov 24, 2024 · 0 comments
Open

how to get only the OUTPUT? #8

pleabargain opened this issue Nov 24, 2024 · 0 comments

Comments

@pleabargain
Copy link

pleabargain commented Nov 24, 2024

thank you
the model works great using ollama version 0.4.4

curl http://localhost:11434/api/generate -d '{"model": "marco-o1",  "prompt": "1+1"}'

this generates LOADS of words but I only want the answer.

however, what is the command to only get the OUTPUT of the thinking process only?

For example, I just want this part
{"model":"marco-o1","created_at":"2024-11-24T07:05:15.8313316Z","response":"Output","done":false}
{"model":"marco-o1","created_at":"2024-11-24T07:05:16.0249158Z","response":"\u003e\n","done":false}
{"model":"marco-o1","created_at":"2024-11-24T07:05:16.2029819Z","response":"1","done":false}
{"model":"marco-o1","created_at":"2024-11-24T07:05:16.3663694Z","response":" +","done":false}
{"model":"marco-o1","created_at":"2024-11-24T07:05:16.5351276Z","response":" ","done":false}
{"model":"marco-o1","created_at":"2024-11-24T07:05:16.696547Z","response":"1","done":false}
{"model":"marco-o1","created_at":"2024-11-24T07:05:16.8586218Z","response":" =","done":false}
{"model":"marco-o1","created_at":"2024-11-24T07:05:17.0209918Z","response":" ","done":false}
{"model":"marco-o1","created_at":"2024-11-24T07:05:17.1857692Z","response":"2","done":false}
{"model":"marco-o1","created_at":"2024-11-24T07:05:17.3491724Z","response":"\n","done":false}
{"model":"marco-o1","created_at":"2024-11-24T07:05:17.5241739Z","response":"\u003c/","done":false}
{"model":"marco-o1","created_at":"2024-11-24T07:05:17.6876723Z","response":"Output","done":false}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant