HexyeDEV / Telegram-Chatbot-Gpt4Free

This is a Python-based Telegram bot using the telethon library. The bot responds to messages using the evagpt4 reverse engeneered api from OpenGPT repo
MIT License
135 stars 39 forks source link

Sweep: Can't build a Docker image #17

Closed t-lessy closed 6 months ago

t-lessy commented 9 months ago

Details

Trying to build Docker image (as in readme) on Arch (EndeavourOS) gives me an error about Python libs.

E: Unable to locate package python-hnswlib
The command '/bin/sh -c apt-get update && apt-get install -y python-hnswlib' returned a non-zero code: 100

I had tried to install that library with AUR, but error keeps showing up. Terminal

Checklist - [X] `Dockerfile` ✅ Commit [`be28270`](https://github.com/HexyeDEV/Telegram-Chatbot-Gpt4Free/commit/be28270a00890288f578fda4ccead4d9c004980d)
• Replace the line `RUN apt-get update && apt-get install -y python-hnswlib` with `RUN pip install hnswlib`. • Remove the duplicate line `RUN pip install --no-cache-dir -r requirements.txt`.
sweep-ai[bot] commented 9 months ago

Here's the PR! https://github.com/HexyeDEV/Telegram-Chatbot-Gpt4Free/pull/18.

⚡ Sweep Free Trial: I'm creating this ticket using GPT-4. You have 4 GPT-4 tickets left for the month and 2 for the day. For more GPT-4 tickets, visit [our payment portal.](https://buy.stripe.com/6oE5npbGVbhC97afZ4)

Actions (click)


Step 1: 🔎 Searching

I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.

Some code snippets I looked at (click to expand). If some file is missing from here, you can mention the path in the ticket description. https://github.com/HexyeDEV/Telegram-Chatbot-Gpt4Free/blob/a9c1f7a312fa040b822c9683d42ca6d190b70ee2/main.py#L1-L214 https://github.com/HexyeDEV/Telegram-Chatbot-Gpt4Free/blob/a9c1f7a312fa040b822c9683d42ca6d190b70ee2/roles.json#L1-L-1 https://github.com/HexyeDEV/Telegram-Chatbot-Gpt4Free/blob/a9c1f7a312fa040b822c9683d42ca6d190b70ee2/sweep.yaml#L1-L11 https://github.com/HexyeDEV/Telegram-Chatbot-Gpt4Free/blob/a9c1f7a312fa040b822c9683d42ca6d190b70ee2/bing/__init__.py#L27-L176 https://github.com/HexyeDEV/Telegram-Chatbot-Gpt4Free/blob/a9c1f7a312fa040b822c9683d42ca6d190b70ee2/Dockerfile#L1-L20
I also found the following external resources that might be helpful: **Summaries of links found in the content:**

Step 2: ⌨️ Coding


Step 3: 🔁 Code Review

I have finished reviewing the code for completeness. I did not find errors for sweep/fix-dockerfile.

.


🎉 Latest improvements to Sweep:


💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request. Join Our Discord