-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added promptflow connection creates to dockerbuild to make setup easi…
…er, less steps, also positions for GH actions
- Loading branch information
Showing
5 changed files
with
30 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,25 @@ | ||
FROM mcr.microsoft.com/azureml/promptflow/promptflow-runtime-stable:latest | ||
|
||
# No need to copy the app code, we mount via docker-compose-dev.yml | ||
ARG OPENAI_API_KEY | ||
ENV OPENAI_API_KEY=$OPENAI_API_KEY | ||
|
||
ARG OPENAI_API_ENDPOINT | ||
ENV OPENAI_API_ENDPOINT=$OPENAI_API_ENDPOINT | ||
|
||
COPY ./flows /app | ||
COPY ./utils /app/chainlit-ui-evaluation/utils | ||
COPY ./templates /app/chainlit-ui-evaluation/templates | ||
COPY ./management/skills.py /app/chainlit-ui-evaluation/recipes/skills.py | ||
COPY ./ui/chat-chainlit-assistant/app.py /app/chainlit-ui-evaluation/app.py | ||
|
||
RUN pip3 install --upgrade pip | ||
RUN pip3 install chainlit==1.1.305 | ||
|
||
# Needed for running chainlit code if using Mock tests | ||
RUN pip3 install chainlit==1.1.305 | ||
|
||
# Needed for promptflow connections | ||
RUN pip install keyrings.alt | ||
|
||
# Set up Connections | ||
RUN cd /app/chainlit-ui-evaluation && pf connection create --file ./openai.yaml --set api_key=$OPENAI_API_KEY --name open_ai_connection | ||
RUN cd /app/chainlit-ui-evaluation && pf connection create --file ./azure_openai.yaml --set api_key=$OPENAI_API_KEY --set api_base=$OPENAI_API_ENDPOINT --name azure_openai |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters