diff --git a/.github/workflows/test_api.yaml b/.github/workflows/test_api.yaml deleted file mode 100644 index 3622e21b..00000000 --- a/.github/workflows/test_api.yaml +++ /dev/null @@ -1,44 +0,0 @@ -name: Run pytest on pull request - -on: - pull_request: - branches: - - dev_main - -jobs: - test: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v2 - with: - ref: dev_main - fetch-depth: 0 - - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: '3.11' - - - name: Install dependencies - run: pip install -r requirements.txt - - - name: Create a openai-gpt35 endpoint - run: | - echo '{ - "type": "openai-gpt35", - "name": "my-openai-gpt35", - "uri": "", - "token": "${{ secrets.OPENAI_GPT35_TOKEN }}", - "max_calls_per_second": 100, - "max_concurrency": 100, - "params": { - "timeout": 600, - "allow_retries": true, - "num_of_retries": 3 - } - }' > moonshot/data/connectors/my-openai-gpt35.json - - - name: Run Pytest - run: pytest tests/test_api_pytest.py \ No newline at end of file diff --git a/README.md b/README.md index 014a5864..0efd99c7 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ![Moonshot Logo](https://github.com/aiverify-foundation/moonshot/raw/main/misc/aiverify-moonshot-logo.png) -**Version 0.4.0** +**Version 0.4.1** A simple and modular tool to evaluate any LLM application. diff --git a/docs/faq.md b/docs/faq.md index 71f1a501..8a5530c7 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -99,4 +99,8 @@ Open your preferred code editor, locate the `token` field, and replace `ADD_API_ ### I cannot see my newly created endpoints in the model endpoint page. -Please refresh the page. \ No newline at end of file +Please refresh the page. + +### I am unable to install PyTorch + +If you are operating on an x86 MacOS, you may encounter difficulties when attempting to install the PyTorch requirement from the moonshot-data. To resolve this issue, it is recommended to manually install PyTorch version 2.2.0, which is compatible with your computer's architecture. diff --git a/docs/getting_started/quick_install.md b/docs/getting_started/quick_install.md index 7c0989da..47ecc916 100644 --- a/docs/getting_started/quick_install.md +++ b/docs/getting_started/quick_install.md @@ -32,6 +32,9 @@ $ python -m moonshot web Lastly, access Moonshot UI using a browser (`http://localhost:3000`). +!!! warning + If you are operating on an x86 MacOS, you may encounter difficulties when attempting to install the dependency for moonshot-data. Please refer to this [FAQ](../faq.md#i-am-unable-to-install-pytorch) for a potential solution. + ## Extra Resources ### Setting up Virtual Environment diff --git a/moonshot/__main__.py b/moonshot/__main__.py index 18805856..b5a9a07f 100644 --- a/moonshot/__main__.py +++ b/moonshot/__main__.py @@ -83,6 +83,9 @@ def moonshot_data_installation(): # Clone the repository run_subprocess(["git", "clone", repo], check=True) + # Create .env to point to installed folder + ms_lib_env_file(folder_name) + # Change directory to the folder os.chdir(folder_name) @@ -99,8 +102,6 @@ def moonshot_data_installation(): # Change back to the base directory os.chdir("..") - # Create .env to point to installed folder - ms_lib_env_file(folder_name) else: print(f"Directory {folder_name} already exists, skipping clone.") diff --git a/moonshot/integrations/web_api/app.py b/moonshot/integrations/web_api/app.py index 7f276528..90be7d20 100644 --- a/moonshot/integrations/web_api/app.py +++ b/moonshot/integrations/web_api/app.py @@ -71,7 +71,7 @@ def create_app(cfg: providers.Configuration) -> CustomFastAPI: app: CustomFastAPI = CustomFastAPI( title="Project Moonshot", - version="0.4.0", + version="0.4.1", **app_kwargs ) diff --git a/pyproject.toml b/pyproject.toml index 3cfe6cd0..18ad0991 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "aiverify-moonshot" -version = "0.4.0" +version = "0.4.1" authors = [ { name="AI Verify Foundation", email="info@aiverify.sg" } ] @@ -94,7 +94,7 @@ allow-direct-references = true [tool.poetry] name = "aiverify-moonshot" -version = "0.4.0" +version = "0.4.1" description = "A simple and modular tool to evaluate and red-team any LLM application." authors = ["The Moonshot Team "] readme = "README.md"