langchain.llms.bittensor.NIBittensorLLM¶
class langchain.llms.bittensor.NIBittensorLLM[source]¶
Bases: LLM
NIBittensorLLM is created by Neural Internet (https://neuralinternet.ai/),
powered by Bittensor, a decentralized network full of different AI models.
To analyze API_KEYS and logs of your usage visithttps://api.neuralinternet.ai/api-keys
https://api.neuralinternet.ai/logs
Example
from langchain.llms import NIBittensorLLM
llm = NIBittensorLLM()
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
param cache: Optional[bool] = None¶
param callback_manager: Optional[BaseCallbackManager] = None¶
param callbacks: Callbacks = None¶
param metadata: Optional[Dict[str, Any]] = None¶
Metadata to add to the run trace.
param system_prompt: Optional[str] = None¶
Provide system prompt that you want to supply it to model before every prompt
param tags: Optional[List[str]] = None¶
Tags to add to the run trace.
param top_responses: Optional[int] = 0¶
Provide top_responses to get Top N miner responses on one request.May get delayed
Don’t use in Production
param verbose: bool [Optional]¶
Whether to print out response text.
__call__(prompt: str, stop: Optional[List[str]] = None, callbacks: Optional[Union[List[BaseCallbackHandler], BaseCallbackManager]] = None, *, tags: Optional[List[str]] = None, metadata: Optional[Dict[str, Any]] = None, **kwargs: Any) → str¶
Check Cache and run the LLM on the given prompt and input.