shikibu9419 commited on
Commit
1a6bb81
·
1 Parent(s): e0447d4

Add Dockerfile setup and README

Browse files
Files changed (3) hide show
  1. Dockerfile +15 -0
  2. README.md +26 -0
  3. requirements.txt +20 -0
Dockerfile ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ RUN apt-get update && apt-get upgrade -y
4
+
5
+ EXPOSE 8000
6
+
7
+ WORKDIR /app
8
+
9
+ COPY . /app
10
+
11
+ RUN pip install --upgrade pip uvicorn
12
+ RUN pip install --upgrade setuptools
13
+ RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
14
+
15
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
README.md ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Cursor Groq Proxy
2
+
3
+ A proxy server enabling access to [Groq](https://groq.com) API within [Cursor](https://cursor.sh/) IDE.
4
+
5
+ ## Usage
6
+
7
+ 0. Deploy this repo to your public server.
8
+ 1. Get Groq API key from [Groq Cloud](https://console.groq.com).
9
+ 2. Open Cursor and Open Cursor Settings (Ctrl+Shift+j).
10
+ 3. Enter your API key and server URL.
11
+
12
+ ## Contribute
13
+
14
+ using Docker
15
+
16
+ ```shell
17
+ docker build -t cursor-groq-proxy .
18
+ docker run -it --rm -p 8000:8000 cursor-groq-proxy:latest
19
+ ```
20
+
21
+ using Pipenv
22
+
23
+ ```shell
24
+ pipenv install
25
+ pipenv run dev
26
+ ```
requirements.txt ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -i https://pypi.org/simple
2
+ annotated-types==0.6.0; python_version >= '3.8'
3
+ anyio==4.3.0; python_version >= '3.8'
4
+ async-timeout==4.0.3; python_version >= '3.7'
5
+ certifi==2024.2.2; python_version >= '3.6'
6
+ click==8.1.7; python_version >= '3.7'
7
+ distro==1.9.0; python_version >= '3.6'
8
+ fastapi==0.110.0; python_version >= '3.8'
9
+ groq==0.4.1; python_version >= '3.7'
10
+ h11==0.14.0; python_version >= '3.7'
11
+ httpcore==1.0.4; python_version >= '3.8'
12
+ httpx==0.27.0; python_version >= '3.8'
13
+ idna==3.6; python_version >= '3.5'
14
+ pydantic==2.6.2; python_version >= '3.8'
15
+ pydantic-core==2.16.3; python_version >= '3.8'
16
+ sniffio==1.3.1; python_version >= '3.7'
17
+ sse-starlette==2.0.0; python_version >= '3.8'
18
+ starlette==0.36.3; python_version >= '3.8'
19
+ typing-extensions==4.10.0; python_version >= '3.8'
20
+ uvicorn==0.27.1; python_version >= '3.8'