Skip to content

Commit

Permalink
调整docker打包
Browse files Browse the repository at this point in the history
  • Loading branch information
SuJingnan committed Sep 17, 2024
1 parent 7a5eab0 commit 8b6165a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
3 changes: 0 additions & 3 deletions examples/.env.example

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This is an example Dockerfile that builds a minimal container for running LK Agents
# syntax=docker/dockerfile:1
ARG PYTHON_VERSION=3.11.6
ARG PYTHON_VERSION=3.11.10
FROM python:${PYTHON_VERSION}-slim

# Prevents Python from writing pyc files.
Expand Down Expand Up @@ -42,8 +42,8 @@ RUN python -m pip install --user --no-cache-dir -r requirements.txt
COPY . .

# ensure that any dependent models are downloaded at build-time
RUN python myagent.py download-files
RUN python minimal_assistant.py download-files

# Run the application.
ENTRYPOINT ["python", "myagent.py"]
ENTRYPOINT ["python", "minimal_assistant.py"]
CMD ["start"]
2 changes: 1 addition & 1 deletion examples/voice-assistant/minimal_assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async def entrypoint(ctx: JobContext):
# llm=openai.LLM.with_ollama(base_url="http://localhost:11434/v1", model="gemma2:27b"),
# llm=openai.LLM.with_azure(model="gpt-4o-mini", azure_endpoint="https://livekit.openai.azure.com/", azure_deployment="livekit-test", api_version="2024-02-15-preview", api_key=""),
# llm=openai.LLM.with_azure(model="gpt-4o", azure_endpoint="https://livekit.openai.azure.com/", azure_deployment="gpt-4o", api_version="2024-02-15-preview", api_key=""),
llm=openai.LLM.with_azure(model="gpt-4o", azure_endpoint="https://sunny-aoai.openai.azure.com/", azure_deployment="gpt-4o", api_version="2024-02-15-preview"),
llm=openai.LLM.with_azure(model="gpt-4o", azure_deployment="gpt-4o"),

tts=TTS(voice="zh-CN-XiaoxiaoNeural"), # Text-to-Speech
chat_ctx=initial_ctx,
Expand Down
2 changes: 2 additions & 0 deletions examples/voice-assistant/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ livekit-plugins-deepgram>=0.6.6
livekit-plugins-silero>=0.6.4
python-dotenv~=1.0
aiofile~=3.8.8
requests~=2.32.3
livekit-plugins-azure~=0.3.1

0 comments on commit 8b6165a

Please sign in to comment.