Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
base_url="https://openrouter.ai/api/v1",
api_key=os.environ["OPENAI_API_KEY"],
)
model = "google/gemini-2.5-flash-preview-05-20"
model = "google/gemini-3-flash-preview"
Copy link

Copilot AI Apr 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The model name is hard-coded, which requires code changes for future model bumps or environment-specific overrides. Consider reading the model from an environment variable (with this value as the default) so deployments can switch models without a new release.

Suggested change
model = "google/gemini-3-flash-preview"
model = os.environ.get("OPENAI_MODEL", "google/gemini-3-flash-preview")

Copilot uses AI. Check for mistakes.


def download(url: str) -> str:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ requires-python = ">=3.10,<3.14"
dependencies = [
"fastapi (>=0.115.12,<0.116.0)",
"uvicorn (>=0.34.2,<0.35.0)",
"markitdown[all] (>=0.1.2,<0.2.0)",
"markitdown[all] (>=0.1.5,<0.2.0)",
"openai (>=1.82.1,<2.0.0)",
Comment on lines 10 to 14
Copy link

Copilot AI Apr 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pyproject.toml now requires markitdown[all] >=0.1.5, but poetry.lock still pins markitdown at 0.1.4 (see poetry.lock around the markitdown package entry). This will make poetry install fail or continue using an out-of-date lock; regenerate and commit an updated lockfile so it resolves to a version that satisfies the new constraint.

Copilot uses AI. Check for mistakes.
"python-multipart (>=0.0.20,<0.0.21)"
]
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ lxml==5.4.0
magika==0.6.2
mammoth==1.9.1
markdownify==1.1.0
markitdown==0.1.2
markitdown==0.1.5
mpmath==1.3.0
msal==1.32.3
msal-extensions==1.3.1
Expand Down
Loading