local-llm-server/llm_server/opts.py

34 lines
1.7 KiB
Python
Raw Normal View History

2023-08-23 23:11:12 -06:00
# Read-only global variables
2023-08-21 22:49:44 -06:00
2023-08-24 20:43:11 -06:00
# TODO: rewrite the config system so I don't have to add every single config default here
2023-08-21 21:28:52 -06:00
running_model = 'none'
2023-08-22 00:26:46 -06:00
concurrent_gens = 3
2023-08-21 21:28:52 -06:00
mode = 'oobabooga'
backend_url = None
2023-08-22 20:42:38 -06:00
context_size = 5555
2023-08-30 18:53:26 -06:00
max_new_tokens = 500
2023-08-21 21:28:52 -06:00
database_path = './proxy-server.db'
auth_required = False
log_prompts = False
2023-08-22 16:50:49 -06:00
frontend_api_client = ''
2023-08-29 17:56:12 -06:00
base_client_api = None
2023-08-22 20:28:41 -06:00
http_host = None
2023-08-23 16:11:32 -06:00
verify_ssl = True
2023-08-23 22:08:10 -06:00
show_num_prompts = True
show_uptime = True
average_generation_time_mode = 'database'
2023-08-24 20:43:11 -06:00
show_total_output_tokens = True
2023-08-25 15:02:40 -06:00
netdata_root = None
2023-09-11 20:47:19 -06:00
simultaneous_requests_per_ip = 3
show_backend_info = True
manual_model_name = None
2023-09-12 16:40:09 -06:00
llm_middleware_name = ''
enable_openi_compatible_backend = True
2023-09-13 20:25:56 -06:00
openai_system_prompt = """You are an assistant chatbot. Your main function is to provide accurate and helpful responses to the user's queries. You should always be polite, respectful, and patient. You should not provide any personal opinions or advice unless specifically asked by the user. You should not make any assumptions about the user's knowledge or abilities. You should always strive to provide clear and concise answers. If you do not understand a user's query, ask for clarification. If you cannot provide an answer, apologize and suggest the user seek help elsewhere.\nLines that start with "### ASSISTANT" were messages you sent previously.\nLines that start with "### USER" were messages sent by the user you are chatting with.\nYou will respond to the "### RESPONSE:" prompt as the assistant and follow the instructions given by the user.\n\n"""
expose_openai_system_prompt = True
enable_streaming = True
openai_api_key = None
backend_request_timeout = 30
backend_generate_request_timeout = 95