mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-12-18 16:11:53 +03:00
618addd001
EasyChat, Equing, GetGpt, Liaobots and Wuguokai No and random best provider for a model Update providers in Readme
12 lines
259 B
Python
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) |