gpt4free
gpt4free copied to clipboard
completion not working properly
import g4f
streamed completion
response = g4f.ChatCompletion.create( model="gpt-3.5-turbo", messages=[{"role": "user", "content": "email?"},{"role": "system", "content": "email address is [email protected]"}], stream=False, )
for message in response: print(message, flush=True, end='')
Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again.
You will have to add further context (e.g. error messages, output etc.) or else it will be hard to help you. Also please put code in a code block like this, its much easier to read e.g.:
import g4f
response = g4f.ChatCompletion.create(
model="gpt-3.5-turbo",
messages=[{"role": "user", "content": "email?"},{"role": "system", "content": "email address is [[email protected]] (mailto:[email protected])"}],
stream=False,
)
for message in response:
print(message, flush=True, end='')
import g4f
response = g4f.ChatCompletion.create( model="gpt-3.5-turbo", messages=[{"role": "user", "content": "your email?"}, {"role": "system", "content": "email address is [[email protected]] (mailto:[email protected])"}], stream=False, )
for message in response: print(message, flush=True, end='')
response "Sorry, but I am an AI language model and do not have an email address."
Well then it works properly, no? That's chat gpt responding, you just have to work on your prompt. Tho this is probably not the place for asking about ai prompts. You can probably find some forum dedicated to that. This issue tracker is mainly for tracking bugs and feature requests of g4f.
Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again.
Closing due to inactivity.