Skip to content

Instantly share code, notes, and snippets.

@everythingpython
Created August 26, 2024 20:08
Show Gist options
  • Select an option

  • Save everythingpython/d2fc27b41a17497466621b7e25c924fa to your computer and use it in GitHub Desktop.

Select an option

Save everythingpython/d2fc27b41a17497466621b7e25c924fa to your computer and use it in GitHub Desktop.
data models for llm_scraper
from pydantic import BaseModel
class AIResponse(BaseModel):
name: str
url: str
topic: str
class AIResponseList(BaseModel):
responses: list[AIResponse]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment