blob: d408d9ec6020f9d3e32ccb768e935b346ca16754 (
plain) (
tree)
|
|
import sys
from pathlib import Path
sys.path.append(str(Path(__file__).parent.parent))
import g4f
stream = False
response = g4f.ChatCompletion.create(
model="gpt-3.5-turbo",
provider=g4f.provider.Ails,
messages=[{"role": "user", "content": "hello"}],
stream=stream,
active_server=5,
)
print(response)
|