You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
swarms/playground/models/openai_model_example.py

11 lines
201 B

import os
from swarms.models import OpenAIChat
# Load doten
openai = OpenAIChat(
openai_api_key=os.getenv("OPENAI_API_KEY"), verbose=False
)
chat = openai("What are quantum fields?")
print(chat)