add vision to help text
This commit is contained in:
parent
7b20e71d65
commit
5f4fa86480
|
@ -45,3 +45,8 @@ The bot can give helpful reactions:
|
|||
- 🕒 means the API timed out.
|
||||
- ❌ means the bot encountered an exception.
|
||||
- ❌ 🔐 means there was a decryption failure.
|
||||
|
||||
## TODO
|
||||
|
||||
- [ ] Dalle bot
|
||||
- [ ] Fix the typing indicator being removed when two responses are generating
|
|
@ -57,6 +57,7 @@ DEFAULT_LISTS = {
|
|||
'system_prompt': None,
|
||||
'injected_system_prompt': None,
|
||||
'api_base': None,
|
||||
'vision': False,
|
||||
'help': None,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -117,11 +117,12 @@ async def sound_off(room: MatrixRoom, event: RoomMessageText, client_helper: Mat
|
|||
|
||||
`!matrixgpt` - show this help message.\n\n"""
|
||||
for command in global_config['command']:
|
||||
max_tokens = command['max_tokens'] if command['max_tokens'] > 0 else 'max'
|
||||
max_tokens = f' Max tokens: {command["max_tokens"]}.' if command['max_tokens'] > 0 else ''
|
||||
system_prompt_text = f" System prompt: yes." if command['system_prompt'] else ''
|
||||
injected_system_prompt_text = f" Injected system prompt: yes." if command['injected_system_prompt'] else ''
|
||||
help_text = f" ***{command['help'].strip('.')}.***" if command['help'] else ''
|
||||
text_response = text_response + f"`{command['trigger']}` - Model: {command['model']}. Temperature: {command['temperature']}. Max tokens: {max_tokens}.{system_prompt_text}{injected_system_prompt_text}{help_text}\n\n"
|
||||
vision_text = ' Vision: yes.' if command['vision'] else ''
|
||||
text_response = text_response + f"`{command['trigger']}` - Model: {command['model']}. Temperature: {command['temperature']}.{max_tokens}{vision_text}{system_prompt_text}{injected_system_prompt_text}{help_text}\n\n"
|
||||
return await client_helper.send_text_to_room(
|
||||
room.room_id,
|
||||
text_response,
|
||||
|
|
Loading…
Reference in New Issue