CaffeinatedCoding commited on
Commit
bcc8c23
·
verified ·
1 Parent(s): 9aada33

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. src/llm.py +1 -1
Dockerfile CHANGED
@@ -2,7 +2,7 @@ FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
 
5
- # Updated: install ca-certificates so the container can properly verify HTTPS (fixes Groq connection error)
6
  RUN apt-get update && \
7
  apt-get install -y git curl ca-certificates && \
8
  update-ca-certificates && \
 
2
 
3
  WORKDIR /app
4
 
5
+ # Permanent fix for Groq SSL/connection error
6
  RUN apt-get update && \
7
  apt-get install -y git curl ca-certificates && \
8
  update-ca-certificates && \
src/llm.py CHANGED
@@ -16,7 +16,7 @@ load_dotenv()
16
 
17
  _client = Groq(
18
  api_key=os.getenv("GROQ_API_KEY"),
19
- http_client=httpx.Client(verify=False, timeout=30.0)
20
  )
21
 
22
 
 
16
 
17
  _client = Groq(
18
  api_key=os.getenv("GROQ_API_KEY"),
19
+ http_client=httpx.Client(timeout=30.0)
20
  )
21
 
22