gpt4free icon indicating copy to clipboard operation
gpt4free copied to clipboard

completion not working properly

Open sahilbrandwala opened this issue 1 year ago • 5 comments

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='')

sahilbrandwala avatar Oct 09 '23 06:10 sahilbrandwala

Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again.

github-actions[bot] avatar Oct 17 '23 00:10 github-actions[bot]

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='')

sdaqo avatar Oct 18 '23 17:10 sdaqo

image

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."

sahilbrandwala avatar Oct 18 '23 18:10 sahilbrandwala

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.

sdaqo avatar Oct 18 '23 20:10 sdaqo

Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again.

github-actions[bot] avatar Feb 27 '24 00:02 github-actions[bot]

Closing due to inactivity.

github-actions[bot] avatar Apr 24 '24 00:04 github-actions[bot]