mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 09:16:19 +00:00
🐛 fix(ChatProcess.py): import missing 'characters' module from src.utils.variousclasses to fix NameError
✨ feat(ChatProcess.py): add support for custom temperature for each character in the 'characters' module to improve chat responses 🐛 fix(openaiChat.py): add 'temperature' parameter to the 'openaiChat' function to allow custom temperature for generating responses 🐛 fix(request.py): add 'custom_temp' parameter to the 'request' function to pass custom temperature to 'openaiChat' function 🐛 fix(openaicaller.py): reduce sleep time from 10 seconds to 5 seconds for retrying API calls to improve responsiveness ✨ feat(variousclasses.py): add 'custom_temp' dictionary to store custom temperature values for each character to improve chat responses
This commit is contained in:
@@ -6,12 +6,11 @@ import datetime
|
||||
import json
|
||||
|
||||
from src.utils.misc import moderate
|
||||
from src.utils.variousclasses import models
|
||||
from src.utils.variousclasses import models, characters
|
||||
from src.guild import Guild
|
||||
from src.chatUtils.Chat import fetch_messages_history, is_ignorable
|
||||
from src.chatUtils.prompts import createPrompt
|
||||
from src.functionscalls import call_function, server_normal_channel_functions, functions
|
||||
from src.config import debug
|
||||
from src.chatUtils.requesters.request import request
|
||||
|
||||
|
||||
@@ -157,6 +156,7 @@ class Chat:
|
||||
prompt=self.prompt,
|
||||
openai_api_key=self.openai_api_key,
|
||||
funtcions=funcs,
|
||||
custom_temp=characters.custom_temp.get(self.character, 1.2),
|
||||
)
|
||||
|
||||
async def processResponse(self):
|
||||
|
||||
Reference in New Issue
Block a user