The generate POST succeeds and returns a job ID, but retrieving results always fails with HTTP 400.
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- python
- Domain
- api, machine-learning
Research direction
Start in embeddings/api.py and trace the generate job's POST and result-retrieval URLs. Reproduce the issue with poet.generate(...), then gen_job.wait() using the documented minimal example. Done means the result retrieval uses the correct model-scoped endpoint and no longer fails with HTTP 400.
Written by the indexing model from the issue text.
Description
Version: 0.12.1
The generate POST succeeds and returns a job ID, but retrieving
results always fails with HTTP 400.
Looking at embeddings/api.py:
- POST goes to: /api/v1/embeddings/models/{model_id}/generate ✓
- GET goes to: /api/v1/embeddings/{job_id}/generate ✗
The GET path appears to be missing the /models/{model_id}/
prefix compared to the POST path. This may be a URL mismatch.
Failing job ID: f83e723e-6f03-4c79-a46a-cc752b6a30e4
Server response: {"detail":"error retrieving results","jid":"..."}
Minimal reproduction:
poet = session.embedding.get_model("poet")
gen_job = poet.generate(prompt=prompt_id_string, num_samples=10)
gen_job.wait() # raises HTTPError 400
- Dominant language
- Python
- Stars
- 17
- Forks
- 0
- Avg merge
- 16m
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Similar issues
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
canonical/paas-charm#368 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
tech debt
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
StevenBlack/hosts#3256 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
qualcomm/qai-appbuilder#275 ·