Skip to content

Commit

Permalink
Merge pull request #22 from parea-ai/update-url
Browse files Browse the repository at this point in the history
correct url
  • Loading branch information
jalexanderII committed Jul 25, 2023
2 parents 5d37d04 + 330bc96 commit b882377
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ deployment_id = '<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(
Expand All @@ -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():
Expand Down
2 changes: 1 addition & 1 deletion parea/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>"]
Expand Down

0 comments on commit b882377

Please sign in to comment.