Skip to content

Commit

Permalink
Ignore two errors
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidMStraub committed Dec 11, 2024
1 parent d2184fa commit 496be18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gramps_webapi/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
from threading import Thread

import click
import waitress
import waitress # type: ignore
import webbrowser

from .api.search import get_search_indexer, get_semantic_search_indexer
Expand Down
4 changes: 2 additions & 2 deletions gramps_webapi/api/llm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ def answer_prompt(prompt: str, system_prompt: str, config: dict | None = None) -

try:
response = client.chat.completions.create(
messages=messages,
messages=messages, # type: ignore
model=model,
) # type: ignore
)
except RateLimitError:
abort_with_message(500, "Chat API rate limit exceeded.")
except APIError:
Expand Down

0 comments on commit 496be18

Please sign in to comment.