top | item 46409829

(no title)

jmogly | 2 months ago

I’ve been using the following pattern since gpt3, the only other thing I have changed was added another parameter for schema for structured output. People really love to overcomplicate things.

class AI(Protocol):

def call_llm(prompt: str) -> str: …

discuss

order

No comments yet.