Created
April 8, 2024 22:33
-
-
Save fsndzomga/127d68a7b1b15f935b231d767868b650 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dspy | |
import os | |
from dotenv import load_dotenv | |
load_dotenv() | |
llm = dspy.OpenAI( | |
model='gpt-4', | |
api_key=os.environ['OPENAI_API_KEY'], | |
max_tokens=100 | |
) | |
dspy.settings.configure(lm=llm) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment