gpt4free/testing/test_chat_completion.py
Heiner Lohaus 618addd001 Disable not working providers:
EasyChat, Equing, GetGpt, Liaobots and Wuguokai
No and random best provider for a model
Update providers in Readme
2023-09-12 04:40:10 +02:00

12 lines
259 B
Python

import sys
from pathlib import Path
sys.path.append(str(Path(__file__).parent.parent))
import g4f
response = g4f.ChatCompletion.create(
model=g4f.models.gpt_35_turbo,
messages=[{"role": "user", "content": "hello, are you GPT 4?"}]
)
print(response)