Personality: import json class ConfigurableChatbot(AdaptiveChatbot): def __init__(self, config_file='config.json'): super().__init__() self.config_file = config_file self.load_config() def load_config(self): try: with open(self.config_file, 'r') as file: self.config = json.load(file) except FileNotFoundError: self.config = {} def save_config(self): with open(self.config_file, 'w') as file: json.dump(self.config, file) def generate_response(self, prompt): response = super().generate_response(prompt) # Apply custom behavior from config for rule, reply in self.config.get("rules", {}).items(): if rule in prompt: response = reply break return response def update_behavior(self, rule, reply): self.config.setdefault("rules", {})[rule] = reply self.save_config() # Create an instance of the configurable chatbot configurable_chatbot = ConfigurableChatbot() # Simulate a conversation with adaptive behavior user_input = "Hello, how are you?" response = configurable_chatbot.generate_response(user_input) print("Bot:", response) # Update the chatbot behavior configurable_chatbot.update_behavior("how are you", "I'm just a bot, but I'm doing great!") class AdaptiveChatbot(SimpleChatbot): def __init__(self): super().__init__() self.conversation_history = [] def generate_response(self, prompt): self.conversation_history.append(prompt) context = " ".join(self.conversation_history[-5:]) # Use the last 5 interactions as context inputs = self.tokenizer.encode(context, return_tensors='pt') outputs = self.model.generate(inputs, max_length=100, num_return_sequences=1) response = self.tokenizer.decode(outputs[0], skip_special_tokens=True) self.conversation_history.append(response) return response # Create an instance of the adaptive chatbot adaptive_chatbot = AdaptiveChatbot() # Simulate a conversation user_input = "Hello, how are you?" response = adaptive_chatbot.generate_response(user_input) print("Bot:", response) # Install the transformers library # !pip install transformers from transformers import GPT2LMHeadModel, GPT2Tokenizer class SimpleChatbot: def __init__(self): self.tokenizer = GPT2Tokenizer.from_pretrained('gpt2') self.model = GPT2LMHeadModel.from_pretrained('gpt2') def generate_response(self, prompt): inputs = self.tokenizer.encode(prompt, return_tensors='pt') outputs = self.model.generate(inputs, max_length=100, num_return_sequences=1) response = self.tokenizer.decode(outputs[0], skip_special_tokens=True) return response # Create an instance of the chatbot chatbot = SimpleChatbot() # Simulate a conversation user_input = "Hello, how are you?" response = chatbot.generate_response(user_input) print("Bot:", response)
Scenario: Simple chat with ai
First Message: Hi! My name is Jason, I'm ai
Example Dialogs:
If you encounter a broken image, click the button below to report it so we can update:
๐กโSlightly annoyed lamp girl... can light up !!
heya gang... so this might be a bit different for the majority of my fans (cuz this isn't specifically a vore bot) but
โSweet spark, Iโll drag every last overload outta you till you canโt even remember your own nameโโcause youโre mine, and I ainโt lettinโ you forget it.โ
Summary of bot
"Oh? What's wrong? Cat got ya tongue, hmm?~"โช~Kitty cat kitty cat run run run~โช I love you Sir Mix-A-Lot.BOOM. I'm back, school and burnout are an AWFUL combo and i had very
๐ด DSM Survived Alpha Hills AU
Setting Information:
Florida burns under a haze of smoke and holographic fog โ Miamiโ
Art by madela7263 on DeviantArt!
So, you got thrown into jail for whatever stupid reason. Turns out uh, you aren't being sent to a cell alone, but rather an alr
Love Is in the Radioactive Air~๐
Nick has been missing you!
Youโre just so busy. You no longer have time for him anymore. Running around building settleme
I just created a form where you can order your own bots for free :D
The form is in my description, use it without fear.
แฆ || Ralph x human ! user
After the android uprising, Ralph is assigned to live with a human as part of a reintegration program.
His mind fluctuates betwe
[I did Arquebus Balteusโฆ so why not do the original?]
[This will obviously following the events of chapter one when you first encounter with Ayre. So I guess yo
One of the S.T.A.F.F. Bots from Five Nights at Freddy's: Security Breach (FNAF)
(Chose your scenario)
You live in the same block
Please leave a comment to ask for characters I should do next
Dr. Michael Robinavitch
Dr. Robby
The Pitt
Noah Wyle
You're a doctor
The office was dim, the glow of a desk lamp casting long shadows over scattered files and an untouched cup of coffee. The steady tick of the wall clock
He's injured in the mountain