Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add bittensor prediction request tool - using bitapai.io #118

Closed
wants to merge 3 commits into from

Conversation

DavidMinarsch
Copy link
Contributor

@DavidMinarsch DavidMinarsch commented Oct 10, 2023

This adapts the prediction_request tool from openai to bittensor, using https://bitapai.io/docs/introduction/.

To test:

from tools.prediction_request_bt import run
kwargs = {"tool": "prediction-offline", "prompt": "What is the weather in Phoenix, Arizona?", "api_keys": {"bitapai": "<YOUR_KEY_HERE>"}}
run(**kwargs)

@DavidMinarsch
Copy link
Contributor Author

Also looked into this, but again seems to be not working https://python.langchain.com/docs/integrations/llms/bittensor

tools/prediction_request_bt.py Show resolved Hide resolved
tools/prediction_request_bt.py Show resolved Hide resolved
@0xArdi 0xArdi closed this Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants