From 2c105cb5951792dae57a673381b17570801b3bfb Mon Sep 17 00:00:00 2001 From: Commenter123321 <36051603+Commenter123321@users.noreply.github.com> Date: Tue, 10 Oct 2023 14:53:50 +0200 Subject: fix provider thing in gui --- g4f/gui/server/backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g4f') diff --git a/g4f/gui/server/backend.py b/g4f/gui/server/backend.py index 8f4b529f..cf1f9428 100644 --- a/g4f/gui/server/backend.py +++ b/g4f/gui/server/backend.py @@ -40,7 +40,7 @@ class Backend_Api: def stream(): if provider: answer = g4f.ChatCompletion.create(model=model, - provider=provider, messages=messages, stream=True) + provider=g4f.Provider.ProviderUtils.convert.get(provider), messages=messages, stream=True) else: answer = g4f.ChatCompletion.create(model=model, messages=messages, stream=True) -- cgit v1.2.3