diff options
author | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-05-05 23:38:31 +0200 |
---|---|---|
committer | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-05-05 23:38:31 +0200 |
commit | 8fcf618bbe164e6c6f3e0df5e6c9809f35a50e6c (patch) | |
tree | d956ccf9116d4f4db0157c5025dcfbb2a4804487 /g4f/api/__init__.py | |
parent | Add AppConfig class, update readme (diff) | |
download | gpt4free-8fcf618bbe164e6c6f3e0df5e6c9809f35a50e6c.tar gpt4free-8fcf618bbe164e6c6f3e0df5e6c9809f35a50e6c.tar.gz gpt4free-8fcf618bbe164e6c6f3e0df5e6c9809f35a50e6c.tar.bz2 gpt4free-8fcf618bbe164e6c6f3e0df5e6c9809f35a50e6c.tar.lz gpt4free-8fcf618bbe164e6c6f3e0df5e6c9809f35a50e6c.tar.xz gpt4free-8fcf618bbe164e6c6f3e0df5e6c9809f35a50e6c.tar.zst gpt4free-8fcf618bbe164e6c6f3e0df5e6c9809f35a50e6c.zip |
Diffstat (limited to 'g4f/api/__init__.py')
-rw-r--r-- | g4f/api/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g4f/api/__init__.py b/g4f/api/__init__.py index f252ab71..20cc42db 100644 --- a/g4f/api/__init__.py +++ b/g4f/api/__init__.py @@ -201,7 +201,7 @@ def run_api( if bind is not None: host, port = bind.split(":") uvicorn.run( - f"g4f.api:{'create_app_debug' if debug else 'create_app'}", + f"g4f.api:create_app{'_debug' if debug else ''}", host=host, port=int(port), workers=workers, use_colors=use_colors, |