Skip to content

Commit

Permalink
improve: remove Field default, add reason for mypy ignore errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rodonguyen committed Mar 9, 2024
1 parent 0de96e0 commit 9d94819
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/discord_bot/bot.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import interactions
from pydantic import Field
from pydantic_settings import BaseSettings, SettingsConfigDict
from discord_bot.llm import answer_question

Expand All @@ -8,10 +7,11 @@ class Settings(BaseSettings):
model_config = SettingsConfigDict(env_file="../../.env", env_file_encoding="utf-8")

DISCORD_BOT_TOKEN: str
AI_SERVER_URL: str = Field(default="http://localhost:8000")
AI_SERVER_URL: str = "http://localhost:8000"


# mypy: ignore-errors
# mypy: ignore-errors
# MyPy requires unecessary named arguments which are automatically imported by pydantic_settings.BaseSettings
settings = Settings()
MODEL_CHOICES = ["gpt-3.5-turbo", "gpt-4", "phi"]
DISCORD_BOT_TOKEN = settings.DISCORD_BOT_TOKEN
Expand Down

0 comments on commit 9d94819

Please sign in to comment.