This commit is contained in:
zachary62 2024-12-27 20:45:43 +00:00
parent dd2899fe7f
commit 13375b0622
2 changed files with 436 additions and 281 deletions

File diff suppressed because one or more lines are too long

View File

@ -3,7 +3,7 @@ from minillmflow import Node, BatchNode, Flow, BatchFlow, AsyncNode, AsyncFlow,
import os
# 1) Implement a simple LLM helper (OpenAI in this example).
def call_LLM(prompt):
def call_llm(prompt):
# Users must set an OpenAI API key; can also load from env var, etc.
openai.api_key = "YOUR_API_KEY_HERE"
r = openai.ChatCompletion.create(