OpenProteinAI / OpenProteinAI/openprotein-python

The generate POST succeeds and returns a job ID, but retrieving results always fails with HTTP 400.

未关闭 适合新手
#6 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Python
星标
17
派生
0
平均合并
16 分钟
30 天内合并 PR
1

描述

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

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 embeddings/api.py 开始,跟踪 generate job 的 POST URL 和结果获取 URL。使用文档中的最小示例,通过 poet.generate(...),然后使用 gen_job.wait() 重现该问题。当结果获取使用正确的模型范围 endpoint 且不再因 HTTP 400 失败时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
api, machine-learning
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
冷清
描述清晰度
描述清楚
新手友好度
76/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。