Fix Bug with Miner recieving messages in list of strings instead of list of dicts #1293
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR fixes #1292
On the previous version of bittensor/_synapse/text_prompting/synapse.py (https://github.com/opentensor/bittensor/blob/eff272409704d801ce337a2ce850ba49368848d5/bittensor/_synapse/text_prompting/synapse.py)
On line 57 it is:
formatted_messages = [ json.loads(message) for message in forward_call.messages ]
The most recent update to the file made yesterday, had the json.loads function removed, causing the error:
self.formatted_messages = [ message for message in self.messages ]
So I simply added import of json and json loading the messages.
I will test the solution today to make doubly sure it solves the issue.