Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.3.2 #62

Merged
merged 8 commits into from
Oct 26, 2024
Merged
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ai-backend-docs",
"version": "0.3.0",
"version": "0.3.2",
"description": "Documentation for the AI Backend project",
"scripts": {
"docs:dev": "vitepress dev src",
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
fastapi~=0.115.2
ollama~=0.3.3
pydantic~=2.9.2
mypy~=1.12.0
mypy~=1.13.0
mypy-extensions~=1.0.0
pytest~=8.3.3

# Optional dependencies
black~=24.10.0
ruff~=0.7.1
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
app = FastAPI(
title="AI Backend",
description="ai backend for your app powered by llama3",
version="0.3.0",
version="0.3.2",
)

origins = ["*"]
Expand Down
2 changes: 2 additions & 0 deletions src/types/requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class Message(BaseModel):
"""
Request body for sending a message to a model
"""

prompt: str
model: TextModel

Expand All @@ -15,6 +16,7 @@ class Image(BaseModel):
"""
Request body for sending an image to a model
"""

prompt: str
model: ImageModel
images: list[str]
Loading