Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/upload-pypi-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,5 @@ jobs:
- name: Push Docker image to Docker Hub
run: |
docker push tensoropsai/llmstudio:${{ env.VERSION }}
docker push tensoropsai/llmstudio:${{ env.VERSION }}
3 changes: 2 additions & 1 deletion .github/workflows/upload-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,5 @@ jobs:
- name: Push Docker images to Docker Hub
run: |
docker push tensoropsai/llmstudio:${{ env.VERSION }}
docker push tensoropsai/llmstudio:latest
docker push tensoropsai/llmstudio:latest

15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM python:3.11-slim
ENV PYTHONUNBUFFERED=1

# Install tools
RUN apt-get clean && apt-get update

# Install llmstudio
ARG LLMSTUDIO_VERSION
RUN pip install llmstudio==${LLMSTUDIO_VERSION}
RUN pip install psycopg2-binary

# Expose Ports
EXPOSE 8001 8002

CMD ["llmstudio", "server"]
1 change: 1 addition & 0 deletions llmstudio/engine/providers/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ async def generate_client(
"""Generate an OpenAI client"""

try:
# Create client
client = OpenAI(api_key=request.api_key or self.API_KEY)
return await asyncio.to_thread(
client.chat.completions.create,
Expand Down
Loading