first skeleton
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
|
||||
from photools3.models import LlmRequest, LlmResponse
|
||||
|
||||
|
||||
class LlmSession:
|
||||
def __init__(self):
|
||||
...
|
||||
|
||||
def prompt(self, request: LlmRequest) -> LlmResponse:
|
||||
...
|
||||
|
||||
def close(self):
|
||||
...
|
||||
@@ -0,0 +1,8 @@
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class LlmRequest(BaseModel):
|
||||
...
|
||||
|
||||
class LlmResponse(BaseModel):
|
||||
...
|
||||
@@ -0,0 +1,18 @@
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
class Photo:
|
||||
|
||||
def __init__(self):
|
||||
...
|
||||
|
||||
@classmethod
|
||||
def from_file(cls, path: Path) -> Photo:
|
||||
# TODO
|
||||
return cls()
|
||||
|
||||
def resize(self) -> Photo:
|
||||
# TODO
|
||||
return self
|
||||
|
||||
Reference in New Issue
Block a user