Skip to content

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

@Melissaurious

Description

@Melissaurious

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions