Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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: …





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: