Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 19 additions & 9 deletions prompting/tasks/task_sending.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,25 @@ async def collect_responses(task: BaseTextTask) -> DendriteResponseEvent | None:
logger.warning("No available miners. This should already have been caught earlier.")
return

body = {
"seed": task.seed,
"sampling_parameters": task.sampling_params,
"task": task.__class__.__name__,
"model": task.llm_model_id,
"messages": [
{"role": "user", "content": task.query},
],
}
if isinstance(task, InferenceTask):
body = {
"seed": task.seed,
"sampling_parameters": task.sampling_params,
"task": task.__class__.__name__,
"model": task.llm_model_id,
"messages": task.query,
}
else:
body = {
"seed": task.seed,
"sampling_parameters": task.sampling_params,
"task": task.__class__.__name__,
"model": task.llm_model_id,
"messages": [
{"role": "user", "content": task.query},
],
}

stream_results = await query_miners(uids, body)
logger.debug(f"🔍 Collected responses from {len(stream_results)} miners")

Expand Down
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.16.1"
version = "2.16.2"
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, Richard Wardle"]
readme = "README.md"
Expand Down
Loading