mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 02:30:41 -08:00
Fix docker build, fix temporary chat
This commit is contained in:
parent
bed8b7c083
commit
2955729584
2 changed files with 4 additions and 5 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue