[GH-ISSUE #6113] Generations API for nuextract/phi #29579

Closed
opened 2026-04-22 08:34:27 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @alphastrata on GitHub (Aug 1, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/6113

hitting /api/generate yields nothing :(

if interacting in the manner with neextract/phi is possible please do let us know && we can update the readme etc accordingly.

Originally created by @alphastrata on GitHub (Aug 1, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/6113 hitting /api/generate yields nothing :( if interacting in the manner with neextract/phi is possible please do let us know && we can update the readme etc accordingly.
GiteaMirror added the feature request label 2026-04-22 08:34:27 -05:00
Author
Owner

@rick-github commented on GitHub (Aug 1, 2024):

An example of a failed request and server logs would aid in diagnosis.

$ curl -s localhost:11434/api/generate -d '{"model":"nuextract","prompt":"count to 10","stream":false}' | jq 'del(.context)'
{
  "model": "nuextract",
  "created_at": "2024-08-01T13:28:41.744467739Z",
  "response": " Here is the count from 1 to 10:\n\n1. One\n\n2. Two\n\n3. Three\n\n4. Four\n\n5. Five\n\n6. Six\n\n7. Seven\n\n8. Eight\n\n9. Nine\n\n10. Ten",
  "done": true,
  "done_reason": "stop",
  "total_duration": 1524357722,
  "load_duration": 1068789432,
  "prompt_eval_count": 13,
  "prompt_eval_duration": 9086000,
  "eval_count": 66,
  "eval_duration": 445165000
}
$ curl -s localhost:11434/api/version
{"version":"0.3.2"}
<!-- gh-comment-id:2263054592 --> @rick-github commented on GitHub (Aug 1, 2024): An example of a failed request and server logs would aid in diagnosis. ``` $ curl -s localhost:11434/api/generate -d '{"model":"nuextract","prompt":"count to 10","stream":false}' | jq 'del(.context)' { "model": "nuextract", "created_at": "2024-08-01T13:28:41.744467739Z", "response": " Here is the count from 1 to 10:\n\n1. One\n\n2. Two\n\n3. Three\n\n4. Four\n\n5. Five\n\n6. Six\n\n7. Seven\n\n8. Eight\n\n9. Nine\n\n10. Ten", "done": true, "done_reason": "stop", "total_duration": 1524357722, "load_duration": 1068789432, "prompt_eval_count": 13, "prompt_eval_duration": 9086000, "eval_count": 66, "eval_duration": 445165000 } $ curl -s localhost:11434/api/version {"version":"0.3.2"} ```
Author
Owner

@alphastrata commented on GitHub (Aug 2, 2024):

An example of a failed request and server logs would aid in diagnosis.

$ curl -s localhost:11434/api/generate -d '{"model":"nuextract","prompt":"count to 10","stream":false}' | jq 'del(.context)'
{
  "model": "nuextract",
  "created_at": "2024-08-01T13:28:41.744467739Z",
  "response": " Here is the count from 1 to 10:\n\n1. One\n\n2. Two\n\n3. Three\n\n4. Four\n\n5. Five\n\n6. Six\n\n7. Seven\n\n8. Eight\n\n9. Nine\n\n10. Ten",
  "done": true,
  "done_reason": "stop",
  "total_duration": 1524357722,
  "load_duration": 1068789432,
  "prompt_eval_count": 13,
  "prompt_eval_duration": 9086000,
  "eval_count": 66,
  "eval_duration": 445165000
}
$ curl -s localhost:11434/api/version
{"version":"0.3.2"}

looks like it's just a matter of localhost in my powershell not resolving to 127.0.0.1 .. weird.

curl 127.0.0.1:11434/api/version


StatusCode        : 200
StatusDescription : OK
Content           : {"version":"0.3.2"}
RawContent        : HTTP/1.1 200 OK
                    Content-Length: 19
                    Content-Type: application/json; charset=utf-8
                    Date: Fri, 02 Aug 2024 04:03:43 GMT

                    {"version":"0.3.2"}
Forms             : {}
Headers           : {[Content-Length, 19], [Content-Type, application/json; charset=utf-8], [Date, Fri, 02 Aug 2024
                    04:03:43 GMT]}
Images            : {}
InputFields       : {}
Links             : {}
ParsedHtml        : System.__ComObject
RawContentLength  : 19
<!-- gh-comment-id:2264489839 --> @alphastrata commented on GitHub (Aug 2, 2024): > An example of a failed request and server logs would aid in diagnosis. > > ``` > $ curl -s localhost:11434/api/generate -d '{"model":"nuextract","prompt":"count to 10","stream":false}' | jq 'del(.context)' > { > "model": "nuextract", > "created_at": "2024-08-01T13:28:41.744467739Z", > "response": " Here is the count from 1 to 10:\n\n1. One\n\n2. Two\n\n3. Three\n\n4. Four\n\n5. Five\n\n6. Six\n\n7. Seven\n\n8. Eight\n\n9. Nine\n\n10. Ten", > "done": true, > "done_reason": "stop", > "total_duration": 1524357722, > "load_duration": 1068789432, > "prompt_eval_count": 13, > "prompt_eval_duration": 9086000, > "eval_count": 66, > "eval_duration": 445165000 > } > $ curl -s localhost:11434/api/version > {"version":"0.3.2"} > ``` looks like it's just a matter of `localhost` in my powershell not resolving to `127.0.0.1` .. weird. ```shell curl 127.0.0.1:11434/api/version StatusCode : 200 StatusDescription : OK Content : {"version":"0.3.2"} RawContent : HTTP/1.1 200 OK Content-Length: 19 Content-Type: application/json; charset=utf-8 Date: Fri, 02 Aug 2024 04:03:43 GMT {"version":"0.3.2"} Forms : {} Headers : {[Content-Length, 19], [Content-Type, application/json; charset=utf-8], [Date, Fri, 02 Aug 2024 04:03:43 GMT]} Images : {} InputFields : {} Links : {} ParsedHtml : System.__ComObject RawContentLength : 19 ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#29579