diff --git a/README.md b/README.md index 6ffdf5cf..832e58ed 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ deployment_id = '' # Assuming your deployed prompt's message is: # {"role": "user", "content": "Write a hello world program using {{x}} and the {{y}} framework."} -inputs = {"inputs": {"x": "Golang", "y": "Fiber"}} +inputs = {"x": "Golang", "y": "Fiber"} # You can easily unpack a dictionary into an attrs class test_completion = Completion( @@ -59,7 +59,7 @@ test_completion = Completion( # By passing in my inputs, in addition to the raw message with unfilled variables {{x}} and {{y}}, # you we will also get the filled-in prompt: # {"role": "user", "content": "Write a hello world program using Golang and the Fiber framework."} -test_get_prompt = UseDeployedPrompt(deployment_id=deployment_id, inputs=inputs) +test_get_prompt = UseDeployedPrompt(deployment_id=deployment_id, llm_inputs=inputs) def main(): diff --git a/parea/api_client.py b/parea/api_client.py index abd76a88..1546a5e2 100644 --- a/parea/api_client.py +++ b/parea/api_client.py @@ -5,7 +5,7 @@ class HTTPClient: _instance = None - base_url = "https://www.optimusprompt.ai/api/parea/v1" + base_url = "https://optimus-prompt-backend.vercel.app/api/parea/v1" api_key = None def __new__(cls, *args, **kwargs): diff --git a/pyproject.toml b/pyproject.toml index fae43107..57cf86a5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "parea-ai" packages = [{ include = "parea" }] -version = "0.1.1a3" +version = "0.1.1a4" description = "Parea python sdk" readme = "README.md" authors = ["joel-parea-ai "]