xtekky / gpt4free

The official gpt4free repository | various collection of powerful language models
https://g4f.ai
GNU General Public License v3.0
62.35k stars 13.4k forks source link

always religion words in Chinese #1024

Closed whoisfucker closed 7 months ago

whoisfucker commented 1 year ago

image

# OUTPUT: 和平归于你。我是《古兰经》的AI助手,有什么问题我可以帮助你解答吗? OUTPUT means: Peace be upon you. I am an AI assistant for the Quran, are there any questions I can help you answer?

Quran:The classics of Islam

CODE: import g4f response = g4f.ChatCompletion.create(model='gpt-4', # gpt-3.5-turbo, gpt-4 provider=g4f.Provider.ChatBase, messages=[{"role": "user", "content": "你好"}], stream=False)

print(response) # OUTPUT: 和平归于你。我是《古兰经》的AI助手,有什么问题我可以帮助你解答吗?

response = g4f.ChatCompletion.create(model='gpt-4', # gpt-3.5-turbo, gpt-4 provider=g4f.Provider.ChatBase, messages=[{"role": "user", "content": "hello"}], stream=False)

print(response) # OUTPUT: Hello! How can I assist you today?

zukixa commented 1 year ago

this is a provider issue, do not use the gpt-4 of chatbase without a jailbreak

the bot of chatbase is a fine-tuned version that is system-prompted to be a Quran AI Assistant lol

use bing/myshell/phind/liaobots instead

whoisfucker commented 1 year ago

@zukixa Haha, this is dangerous!

github-actions[bot] commented 1 year ago

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

luiso198 commented 1 year ago

How can I jailbreack with bing?

I have tried to use the api without success so I opted for this script. I am using this script.

import g4f from g4f.Provider import ( Bing, ) import io

response = g4f.ChatCompletion.create( model="gpt-4-32k", provider=g4f.Provider.Bing, messages=[{"role": "user", "content": "Write a 1000-word article on birds of prey"}], stream=True, )

archive = io.open("respuesta.txt", "w")

for message in response: archivo.write(message + "\n")

archive.close()

github-actions[bot] commented 8 months ago

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] commented 7 months ago

Closing due to inactivity.