OpenProteinAI / OpenProteinAI/openprotein-python
The generate POST succeeds and returns a job ID, but retrieving results always fails with HTTP 400.
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 17
- Forks
- 0
- Avg merge
- 16m
- Merged PRs (30d)
- 1
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
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.
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.
Assessment
- Tech stack
- python
- Domain
- api, machine-learning
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 76/100