Bug description
When using the Blackbox provider, the final answer loses most of the spaces, which is why the words literally "stick" to each other. This does not always happen, but often.
from g4f.client import Client
from g4f.Provider import Blackbox
client = Client(provider=Blackbox)
response = client.chat.completions.create(
messages=[{"role": "user", "content": "Who are you?"}],
model="gpt-4o"
)
print(response.choices[0].message.content)
Output: I am an AI language model createdby OpenAI, designed to assist with a wide range of questions and tasks by providing information, generating text,and engaging in conversation. How can I help you today?
Output 2 (bug): Iam an AIlanguage modelcreated byOpenAI, designedto assistwith awide rangeof questionsand tasksby providinginformation andgenerating textbased onthe
input Ireceive. How can Ihelp you today?
Bug description When using the Blackbox provider, the final answer loses most of the spaces, which is why the words literally "stick" to each other. This does not always happen, but often.
Output: I am an AI language model createdby OpenAI, designed to assist with a wide range of questions and tasks by providing information, generating text,and engaging in conversation. How can I help you today? Output 2 (bug): Iam an AIlanguage modelcreated byOpenAI, designedto assistwith awide rangeof questionsand tasksby providinginformation andgenerating textbased onthe input Ireceive. How can Ihelp you today?
Environment Python 3.10 g4f 0.3.5.0