Skip to content

Commit

Permalink
multi turn
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacobsolawetz committed Aug 20, 2024
1 parent c20d1d2 commit 155be47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ __pycache__/
*.py[cod]
*$py.class
.idea
*.ipynb

# C extensions
*.so
Expand Down
8 changes: 5 additions & 3 deletions arcee/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,12 +474,13 @@ def deployment_status(deployment_name: str) -> Dict[str, str]:

def generate(
deployment_name: str,
query: str,
query: str | None = None,
messages: List[Dict[str, str]] | None = None,
repetition_penalty: float | None = None,
top_k: int | None = None,
max_new_tokens: int | None = None,
temperature: float | None = None,
top_p: float | None = None
top_p: float | None = None,
) -> Dict[str, str]:
data = {
"deployment_name": deployment_name,
Expand All @@ -488,7 +489,8 @@ def generate(
"top_k": top_k,
"max_new_tokens": max_new_tokens,
"temperature": temperature,
"top_p": top_p
"messages": messages,
"top_p": top_p,
}
return make_request("post", Route.deployment + "/generate", data)

Expand Down

0 comments on commit 155be47

Please sign in to comment.