Fix docker build, fix temporary chat

This commit is contained in:
hlohaus 2025-11-10 19:56:51 +01:00
parent bed8b7c083
commit 2955729584
2 changed files with 4 additions and 5 deletions

View file

@ -45,8 +45,7 @@ WORKDIR $G4F_DIR
COPY requirements.txt $G4F_DIR COPY requirements.txt $G4F_DIR
# Upgrade pip for the latest features and install the project's Python dependencies. # Upgrade pip for the latest features and install the project's Python dependencies.
RUN pip install --break-system-packages --upgrade pip \ RUN pip install --break-system-packages -r requirements.txt
&& pip install --break-system-packages -r requirements.txt
# Copy the entire package into the container. # Copy the entire package into the container.
ADD --chown=$SEL_UID:$SEL_GID g4f $G4F_DIR/g4f ADD --chown=$SEL_UID:$SEL_GID g4f $G4F_DIR/g4f

View file

@ -363,7 +363,7 @@ class OpenaiChat(AsyncAuthedProvider, ProviderModelMixin):
RuntimeError: If an error occurs during processing. RuntimeError: If an error occurs during processing.
""" """
if temporary is None: if temporary is None:
temporary = action is not None and conversation_id is not None temporary = action is not None and conversation_id is None
if action is None: if action is None:
action = "next" action = "next"
async with StreamSession( async with StreamSession(