Skip to content

Commit 8d46b66

Browse files
committed
Merge branch 'release/v0.1.0-ce' into 'main'
Release/v0.1.0 ce See merge request bizzappdev/ai/polytalkio/polytalk!2
2 parents 00360ee + 2115e26 commit 8d46b66

8 files changed

Lines changed: 40 additions & 12 deletions

File tree

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Changelog
2+
3+
All notable changes to PolyTalk CE are documented in this file.
4+
5+
PolyTalk CE uses app versions such as `0.1.0` and Git tags such as `v0.1.0-ce`.
6+
7+
## Unreleased
8+
9+
- No unreleased changes yet.
10+
11+
## 0.1.0 - 2026-05-29
12+
13+
- Initial public Community Edition release baseline.
14+
- Provides the FastAPI application, browser UI, mock mode, Docker Compose setup, faster-whisper STT service, and Piper TTS service.
15+
- Supports configurable STT, translation, and TTS providers for self-hosted deployments.

app/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from .config import get_config
1919
from .routers import api_router, web_router
2020
from .utils.logger import get_logger
21+
from .version import __version__
2122

2223
logger = get_logger(__name__)
2324

@@ -32,7 +33,7 @@ def create_app() -> FastAPI:
3233
app = FastAPI(
3334
title="PolyTalk",
3435
description="Speech-to-speech translation web application",
35-
version="1.0.0",
36+
version=__version__,
3637
docs_url="/docs",
3738
redoc_url="/redoc",
3839
lifespan=lifespan,

app/routers/api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
from ..services.pipeline_service import TranslationPipelineService
2222
from ..utils.logger import get_logger
23+
from ..version import __version__
2324

2425
logger = get_logger(__name__)
2526

@@ -51,7 +52,7 @@ async def health_check() -> dict:
5152
"""
5253
return {
5354
"status": "healthy",
54-
"version": "1.0.0",
55+
"version": __version__,
5556
"service": "PolyTalk API",
5657
}
5758

app/schemas/translation.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
from pydantic import BaseModel
99
from typing import Optional
1010

11+
from ..version import __version__
12+
1113

1214
class HealthResponse(BaseModel):
1315
"""
@@ -19,7 +21,7 @@ class HealthResponse(BaseModel):
1921
"""
2022

2123
status: str
22-
version: str = "1.0.0"
24+
version: str = __version__
2325

2426

2527
class ErrorResponse(BaseModel):

app/version.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# SPDX-FileCopyrightText: 2026 BizzAppDev Systems Pvt. Ltd.
2+
# SPDX-License-Identifier: AGPL-3.0-or-later
3+
4+
"""PolyTalk application version."""
5+
6+
__version__ = "0.1.0"

tests/test_api_router.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
from app.main import app
1515
from app.services.pipeline_service import TranslationPipelineService
16+
from app.version import __version__
1617

1718

1819
@pytest.fixture
@@ -30,7 +31,7 @@ def test_health_check(self, client):
3031
assert response.status_code == 200
3132
data = response.json()
3233
assert data["status"] == "healthy"
33-
assert data["version"] == "1.0.0"
34+
assert data["version"] == __version__
3435
assert data["service"] == "PolyTalk API"
3536

3637
@pytest.mark.asyncio

tests/test_app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,11 +909,12 @@ class TestMainApp:
909909
def test_create_app(self):
910910
"""Test creating FastAPI application."""
911911
from app.main import create_app
912+
from app.version import __version__
912913

913914
app = create_app()
914915
assert app is not None
915916
assert app.title == "PolyTalk"
916-
assert app.version == "1.0.0"
917+
assert app.version == __version__
917918

918919
def test_app_has_routers(self):
919920
"""Test that app includes routers."""

tests/test_schemas.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"""
77

88
from app.schemas.translation import HealthResponse, ErrorResponse
9+
from app.version import __version__
910

1011

1112
class TestHealthResponse:
@@ -15,7 +16,7 @@ def test_health_response_minimal(self):
1516
"""Test HealthResponse with minimal data."""
1617
response = HealthResponse(status="healthy")
1718
assert response.status == "healthy"
18-
assert response.version == "1.0.0"
19+
assert response.version == __version__
1920

2021
def test_health_response_full(self):
2122
"""Test HealthResponse with all fields."""
@@ -33,24 +34,24 @@ def test_health_response_different_statuses(self):
3334

3435
def test_health_response_model_dump(self):
3536
"""Test HealthResponse model_dump method."""
36-
response = HealthResponse(status="healthy", version="1.0.0")
37+
response = HealthResponse(status="healthy", version=__version__)
3738
data = response.model_dump()
3839
assert data["status"] == "healthy"
39-
assert data["version"] == "1.0.0"
40+
assert data["version"] == __version__
4041

4142
def test_health_response_model_dump_json(self):
4243
"""Test HealthResponse model_dump_json method."""
43-
response = HealthResponse(status="healthy", version="1.0.0")
44+
response = HealthResponse(status="healthy", version=__version__)
4445
json_str = response.model_dump_json()
4546
assert "healthy" in json_str
46-
assert "1.0.0" in json_str
47+
assert __version__ in json_str
4748

4849
def test_health_response_from_dict(self):
4950
"""Test HealthResponse from dictionary."""
50-
data = {"status": "healthy", "version": "1.0.0"}
51+
data = {"status": "healthy", "version": __version__}
5152
response = HealthResponse(**data)
5253
assert response.status == "healthy"
53-
assert response.version == "1.0.0"
54+
assert response.version == __version__
5455

5556

5657
class TestErrorResponse:

0 commit comments

Comments
 (0)