Skip to content

Commit

Permalink
langchain support (#5)
Browse files Browse the repository at this point in the history
* ✨ Refactor main classes and functions
* add langchain and langsmith support
  • Loading branch information
franperezlopez authored Jan 2, 2024
1 parent 8c3cd9f commit 16688b0
Show file tree
Hide file tree
Showing 9 changed files with 677 additions and 311 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ ARG AZURE_OPENAI_API_KEY
ENV AZURE_OPENAI_API_KEY=$AZURE_OPENAI_API_KEY
ARG AZURE_OPENAI_API_BASE
ENV AZURE_OPENAI_API_BASE=$AZURE_OPENAI_API_BASE
ARG LANGCHAIN_API_KEY
ENV LANGCHAIN_API_KEY=$LANGCHAIN_API_KEY
ARG LANGSMITH_API_KEY
ENV LANGSMITH_API_KEY=$LANGSMITH_API_KEY


# Copy environment file
Expand All @@ -35,8 +35,7 @@ WORKDIR /app

# Copy source code
COPY src src
COPY bot.py .

EXPOSE 80

CMD ["python", "-m", "bot"]
CMD ["python", "-m", "src.bot"]
137 changes: 0 additions & 137 deletions bot.py

This file was deleted.

3 changes: 3 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ dependencies:
- pillow=10.1.0
- pip
- pip:
- langchain[openai]==0.0.353
- loguru==0.7.2
- piexif==1.1.3
- python-telegram-bot[webhooks]==20.7
- google-search-results==2.4.2
- randomname==0.2.1

6 changes: 6 additions & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ipykernel
ruff
pytest
pytest-cov
pytest-moq
mypy
Loading

0 comments on commit 16688b0

Please sign in to comment.