Skip to content

Commit

Permalink
Merge pull request #465 from macrocosm-os/staging
Browse files Browse the repository at this point in the history
Update SN19 JSON (#464)
  • Loading branch information
bkb2135 authored Nov 26, 2024
2 parents 7497354 + ab77640 commit d497ee6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion prompting/llms/apis/sn19_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def chat_complete(
}
response = requests.post(url, headers=headers, data=json.dumps(data))
try:
return response.json()["choices"][0]["delta"]["content"]
response_json = response.json()
return response_json["choices"][0]["message"].get("content")
except Exception as e:
logger.exception(f"Error in chat_complete: {e}")
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "prompting"
version = "2.13.0"
version = "2.13.1"
description = "Subnetwork 1 runs on Bittensor and is maintained by Macrocosmos. It's an effort to create decentralised AI"
authors = ["Kalei Brady, Dmytro Bobrenko, Felix Quinque, Steffen Cruz"]
readme = "README.md"
Expand Down

0 comments on commit d497ee6

Please sign in to comment.