ai: Do not abuse this services.
Browse files
NOTICE
CHANGED
@@ -10,3 +10,56 @@ Based on the Qwen: QwQ-32B model developed by Alibaba Cloud.
|
|
10 |
|
11 |
Original model: Qwen: QwQ-32B
|
12 |
Available at: https://huggingface.co/Qwen/QwQ-32B
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
|
11 |
Original model: Qwen: QwQ-32B
|
12 |
Available at: https://huggingface.co/Qwen/QwQ-32B
|
13 |
+
|
14 |
+
|
15 |
+
---------------------------------------------------------------------------------------------------------
|
16 |
+
|
17 |
+
|
18 |
+
NOTICE OF ACCEPTABLE USE AND SERVICE TERMS FOR JARVIS AI MULTI PLATFORM
|
19 |
+
|
20 |
+
Welcome to JARVIS, a free multi platform AI service provider.
|
21 |
+
|
22 |
+
This notice outlines the terms and conditions for using JARVIS’s services.
|
23 |
+
By accessing or using JARVIS, you agree to abide by the following terms and
|
24 |
+
are fully responsible for your use of the platform.
|
25 |
+
|
26 |
+
1. Purpose of JARVIS
|
27 |
+
JARVIS is designed to provide free access to various AI models, It is intended for
|
28 |
+
educational, personal, research, and non-commercial use.
|
29 |
+
|
30 |
+
2. Prohibited Uses
|
31 |
+
You agree not to misuse the JARVIS platform in any way, including but not limited to:
|
32 |
+
|
33 |
+
- Illegal Activity: Using JARVIS for any illegal, unlawful, or criminal purposes.
|
34 |
+
- Malicious Intent: Generating, sharing, or distributing harmful content such as:
|
35 |
+
- Malware, ransomware, or phishing tools.
|
36 |
+
- Hateful, abusive, discriminatory, or violent content.
|
37 |
+
- False or misleading information.
|
38 |
+
- Security Violations: Attempting to hack, exploit, or tamper with JARVIS’s systems or services.
|
39 |
+
- Impersonation: Pretending to be another person, organization, or falsely claiming affiliation.
|
40 |
+
- Automated Abuse: Using bots or scripts to excessively access or overload the system.
|
41 |
+
- Bypassing Limitations: Attempting to override or manipulate usage restrictions or safeguards.
|
42 |
+
|
43 |
+
3. User Responsibilities
|
44 |
+
As a user of JARVIS, you are solely responsible for:
|
45 |
+
- Ensuring that your use of the platform complies with local laws and regulations.
|
46 |
+
- Avoiding the generation or distribution of harmful or illegal content.
|
47 |
+
- Respecting the rights and safety of others, including intellectual property rights.
|
48 |
+
|
49 |
+
4. Monitoring and Enforcement
|
50 |
+
To maintain service integrity:
|
51 |
+
- JARVIS may monitor usage patterns to detect abuse.
|
52 |
+
- In cases of serious violation, legal action may be taken.
|
53 |
+
|
54 |
+
5. Limitation of Liability
|
55 |
+
JARVIS is provided as-is with no guarantees or warranties.
|
56 |
+
|
57 |
+
6. Changes and Updates
|
58 |
+
This notice may be updated periodically. Continued use of JARVIS implies agreement to the latest version
|
59 |
+
of the terms.
|
60 |
+
|
61 |
+
7. Agreement
|
62 |
+
By using JARVIS, you acknowledge that you:
|
63 |
+
- Have read and understood this notice.
|
64 |
+
- Agree not to misuse the platform.
|
65 |
+
- Accept full responsibility for your interactions with the service.
|
jarvis.py
CHANGED
@@ -203,7 +203,7 @@ def extract_file_content(fp):
|
|
203 |
return f"{fp}: {e}"
|
204 |
|
205 |
async def fetch_response_stream_async(host, key, model, msgs, cfg, sid, stop_event):
|
206 |
-
for t in [
|
207 |
try:
|
208 |
async with httpx.AsyncClient(timeout=t) as client:
|
209 |
async with client.stream("POST", host, json={**{"model": model, "messages": msgs, "session_id": sid, "stream": True}, **cfg}, headers={"Authorization": f"Bearer {key}"}) as response:
|
@@ -296,6 +296,8 @@ async def respond_async(multi, history, model_display, sess, custom_prompt):
|
|
296 |
display_text = ""
|
297 |
content_started = False
|
298 |
async for typ, chunk in chat_with_model_async(history, inp, model_display, sess, custom_prompt):
|
|
|
|
|
299 |
if typ == "reasoning":
|
300 |
if content_started:
|
301 |
continue
|
@@ -362,4 +364,4 @@ with gr.Blocks(fill_height=True, fill_width=True, title=AI_TYPES["AI_TYPE_4"], h
|
|
362 |
system_prompt.change(fn=lambda x: x, inputs=[system_prompt], outputs=[custom_prompt_state])
|
363 |
msg.submit(fn=respond_async, inputs=[msg, user_history, selected_model, user_session, custom_prompt_state], outputs=[chatbot, msg, user_session], api_name=INTERNAL_AI_GET_SERVER)
|
364 |
msg.stop(fn=stop_response, inputs=[user_history, user_session], outputs=[chatbot, msg, user_session])
|
365 |
-
jarvis.queue(default_concurrency_limit=
|
|
|
203 |
return f"{fp}: {e}"
|
204 |
|
205 |
async def fetch_response_stream_async(host, key, model, msgs, cfg, sid, stop_event):
|
206 |
+
for t in [0.5, 1]:
|
207 |
try:
|
208 |
async with httpx.AsyncClient(timeout=t) as client:
|
209 |
async with client.stream("POST", host, json={**{"model": model, "messages": msgs, "session_id": sid, "stream": True}, **cfg}, headers={"Authorization": f"Bearer {key}"}) as response:
|
|
|
296 |
display_text = ""
|
297 |
content_started = False
|
298 |
async for typ, chunk in chat_with_model_async(history, inp, model_display, sess, custom_prompt):
|
299 |
+
if sess.stop_event.is_set():
|
300 |
+
break
|
301 |
if typ == "reasoning":
|
302 |
if content_started:
|
303 |
continue
|
|
|
364 |
system_prompt.change(fn=lambda x: x, inputs=[system_prompt], outputs=[custom_prompt_state])
|
365 |
msg.submit(fn=respond_async, inputs=[msg, user_history, selected_model, user_session, custom_prompt_state], outputs=[chatbot, msg, user_session], api_name=INTERNAL_AI_GET_SERVER)
|
366 |
msg.stop(fn=stop_response, inputs=[user_history, user_session], outputs=[chatbot, msg, user_session])
|
367 |
+
jarvis.queue(default_concurrency_limit=2).launch(max_file_size="1mb")
|