CoolFace
Apppublic

cathub/LocalChatGPT

sourceHugging Facegpl-3.0updated 3y agoView on Hugging Face
0likes
presets.cpython-39.pyc44 linesDownload Raw Back to __pycache__
1a

2N�d8�@s(ddlZdZdZdZdZdZdZdZd	Z	d3Z4dZdZd
Z
dZdZdZdZdZdZdZdZdZdZdZdZdZgd�Zgd�ZdZdZdZdZ ej!j"ej!j#d d!d d"d"d#d#d"d"d d d$�ej!j#d%d%d%d%d%d%d%d%d%d%d%d$�ej!j#d&d'd(d)d*d+d,d-d.d/d0d1d2�ej!j$j%d3�j&d4d4d5d4d4d6d6d7d8d/d6d9d:d;d<�Z'dS)=�NzYou are a helpful assistant.z*https://api.openai.com/v1/chat/completionsz6https://api.openai.com/dashboard/billing/credit_grants�history�	templatesu☹️发生了错误:u4请检查网络连接,或者API-Key是否有效。u$连接超时,无法获取对话。u$读取超时,无法获取对话。u$代理错误,无法获取对话。u!SSL错误,无法获取对话。u9API key长度不是51位,请检查是否输入正确。u请输入对话内容。i�
�5��TF�d�g�?uO<h1 align="left" style="min-width:200px; margin-top:0;">川虎ChatGPT 🚀</h1>uM<div align="center" style="margin:16px 0">6 7由Bilibili [土川虎虎虎](https://space.bilibili.com/29125536) 和 [明昭MZhao](https://space.bilibili.com/24807452)开发8 9访问川虎ChatGPT的 [GitHub项目](https://github.com/GaiZhenbiao/ChuanhuChatGPT) 下载最新版脚本10 11此App使用 `gpt-3.5-turbo` 大语言模型12</div>13u'你是谁?我们刚才聊了什么?)z
gpt-3.5-turbozgpt-3.5-turbo-0301zgpt-4z14gpt-4-0314z	gpt-4-32kzgpt-4-32k-0314)u中文�Englishu	日本語uEspañolu	FrançaisZDeutschu!跟随问题语言(不稳定)a�Web search results:15 16{web_results}17Current date: {current_date}18 19Instructions: Using the provided web search results, write a comprehensive reply to the given query. Make sure to cite results using [[number](URL)] notation after the reference. If the provided search results refer to multiple subjects with the same name, write separate answers for each subject.20Query: {query}21Reply in {reply_language}22aContext information is below.23---------------------24{context_str}25---------------------26Current date: {current_date}.27Using the provided context information, write a comprehensive reply to the given query.28Make sure to cite results using [number] notation after the reference.29If the provided context information refer to multiple subjects with the same name, write separate answers for each subject.30Use prior knowledge only if the given context didn't provide enough information.31Answer the question: {query_str}32Reply in {reply_language}33a�The original question is as follows: {query_str}34We have provided an existing answer: {existing_answer}35We have the opportunity to refine the existing answer36(only if needed) with some more context below.37------------38{context_msg}39------------40Given the new context, refine the original answer to better41Reply in {reply_language}42If the context isn't useful, return the original answer.43z%<!-- ALREADY CONVERTED BY PARSER. -->z#02C160zrgba(2, 193, 96, 0.2)zrgba(2, 193, 96, 0.32)zrgba(2, 193, 96, 1.0))�c50�c100�c200�c300�c400�c500�c600�c700�c800�c900�c950z#576b95�grayz#f9fafbz#f3f4f6z#e5e7ebz#d1d5dbz#B2B2B2z#808080z#636363z#515151z#393939z#272727z#171717)�namer	r44rrr
rrrrrr)�primary_hue�
secondary_hue�neutral_hue�radius_sizez#06AE56z#07C863z#FFFFFFz#F2F2F2z#2B2B2Bz*primary_500z*primary_100z#F6F6F6)�button_primary_background_fill�#button_primary_background_fill_dark�$button_primary_background_fill_hover�button_primary_border_color� button_primary_border_color_dark�button_primary_text_color�button_primary_text_color_dark� button_secondary_background_fill�%button_secondary_background_fill_dark�button_secondary_text_color� button_secondary_text_color_dark�block_title_text_color�block_title_background_fill�input_background_fill)(�gradio�gr�initial_promptZAPI_URLZBALANCE_API_URL�HISTORY_DIR�
TEMPLATES_DIR�standard_error_msgZerror_retrieve_promptZconnection_timeout_promptZread_timeout_promptZproxy_error_promptZssl_error_promptZ
no_apikey_msgZno_input_msgZmax_token_streamingZtimeout_streamingZ
max_token_allZtimeout_all�enable_streaming_option�HIDE_MY_KEY�CONCURRENT_COUNTZSIM_KZINDEX_QUERY_TEMPRATURE�title�descriptionZsummarize_prompt�MODELS�REPLY_LANGUAGESZWEBSEARCH_PTOMPT_TEMPLATEZPROMPT_TEMPLATEZREFINE_TEMPLATE�ALREADY_CONVERTED_MARK�themes�Soft�Color�sizes�	radius_sm�set�small_and_beautiful_theme�r=r=�H/Users/treediagram/Documents/Developer/ChuanhuChatGPT/modules/presets.py�<module>s�	
�
�
��+�