Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

fix: autoqa requirements.txt (#5812)

hiento09b7b3eb9d19ff
diff --git a/autoqa/requirements.txt b/autoqa/requirements.txt
index 69abe54ac..149239c1a 100644
--- a/autoqa/requirements.txt
+++ b/autoqa/requirements.txt
@@ -1,18 +1,18 @@
# Core dependencies
-cua-computer[all]>=0.3.5
-cua-agent[all]>=0.3.0
+cua-computer[all]~=0.3.5
+cua-agent[all]~=0.3.0
cua-agent @ git+https://github.com/menloresearch/[email protected]#subdirectory=libs/python/agent
# ReportPortal integration
-reportportal-client>=5.6.5
+reportportal-client~=5.6.5
# Screen recording and automation
-opencv-python>=4.12.0
-numpy>=2.2.6
-PyAutoGUI>=0.9.54
+opencv-python~=4.10.0
+numpy~=2.2.6
+PyAutoGUI~=0.9.54
# System utilities
-psutil>=7.0.0
+psutil~=7.0.0
# Server component
-cua-computer-server>=0.1.19
\ No newline at end of file
+cua-computer-server~=0.1.19
\ No newline at end of file
diff --git a/autoqa/tests/new-user/1-user-start-chatting.txt b/autoqa/tests/new-user/1-user-start-chatting.txt
index 18eb91298..3056fa65f 100644
--- a/autoqa/tests/new-user/1-user-start-chatting.txt
+++ b/autoqa/tests/new-user/1-user-start-chatting.txt
@@ -1,13 +1,13 @@
prompt = """
-You are going to test the Jan application by downloading and chatting with a model (qwen2.5).
+You are going to test the Jan application by downloading and chatting with a model (bitcpm4).
Step-by-step instructions:
1. Given the Jan application is already opened.
2. In the **bottom-left corner**, click the **“Hub”** menu item.
-3. Scroll through the model list or use the search bar to find **qwen2.5**.
-4. Click **“Use”** on the qwen2.5 model.
+3. Scroll through the model list or use the search bar to find **bitcpm4**.
+4. Click **“Use”** on the bitcpm4 model.
5. Wait for the model to finish downloading and become ready.
-6. Once redirected to the chat screen, type any message into the input box (e.g. `Hello qwen2.5`).
+6. Once redirected to the chat screen, type any message into the input box (e.g. `Tell me 5 words about you`).
7. Press **Enter** to send the message.
8. Wait for the model’s response.
diff --git a/autoqa/utils.py b/autoqa/utils.py
index 8c88b796c..26418957b 100644
--- a/autoqa/utils.py
+++ b/autoqa/utils.py
@@ -279,8 +279,8 @@ def start_jan_app(jan_app_path=None):
# Wait a bit more after maximizing
time.sleep(10)
- logger.info("Jan application should be ready")
- time.sleep(10) # Additional wait to ensure everything is ready
+ logger.info("Jan application should be ready, waiting for additional setup...")
+ time.sleep(120) # Additional wait to ensure everything is ready
except Exception as e:
logger.error(f"Error starting Jan application: {e}")