Skip to content

Commit 7c981f5

Browse files
author
mbarber
committed
hotfix
1 parent 47a3c80 commit 7c981f5

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

openprotein/api/poet.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -364,11 +364,10 @@ def upload_prompt_post(
364364
An object representing the status and results of the prompt job.
365365
"""
366366

367-
endpoint = "v1/align/upload_prompt"
368-
367+
endpoint = "v1/poet/align/upload_prompt"
368+
files = {"prompt_file": prompt_file}
369369
try:
370-
body = {"prompt_file": prompt_file}
371-
response = session.post(endpoint, body=body)
370+
response = session.post(endpoint, files=files)
372371
return PromptJob(**response.json())
373372
except Exception as exc:
374373
raise APIError(f"Failed to upload prompt post: {exc}") from exc

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tool.poetry]
22
name = "openprotein_python"
33
packages = [{include = "openprotein"}]
4-
version = "0.1.2"
4+
version = "0.2.1"
55
description = "OpenProtein Python interface."
66
license = "MIT"
77
readme = "README.md"

0 commit comments

Comments
 (0)