Fetches all template names that a user has in the templates directory for chat completions. Signed-off-by: kingbri <bdashore3@proton.me>
9 lines
213 B
Python
9 lines
213 B
Python
from pydantic import BaseModel, Field
|
|
from typing import List
|
|
|
|
|
|
class TemplateList(BaseModel):
|
|
"""Represents a list of templates."""
|
|
|
|
object: str = "list"
|
|
data: List[str] = Field(default_factory=list)
|