Skip to content

Commit

Permalink
upgrade black version
Browse files Browse the repository at this point in the history
  • Loading branch information
ricopinazo committed May 7, 2024
1 parent d955094 commit 2da0864
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install black
run: python -m pip install black=="23.*" mypy=="1.*"
- name: Install black and mypy
run: python -m pip install black=="24.*" mypy=="1.*"
- name: Check style
run: black --check --diff .
- name: chek types
Expand Down
5 changes: 2 additions & 3 deletions src/comai/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@

class Settings(BaseModel):
provider: Literal["ollama", "openai"]
model: str = (
"llama3" # TODO: improve this, should be typed per provider, although possible models can be queried at runtime
)
# TODO: improve this, should be typed per provider, although possible models can be queried at runtime
model: str = "llama3"


DEFAULT_SETTINGS: Settings = Settings(provider="ollama", model="llama3")
Expand Down

0 comments on commit 2da0864

Please sign in to comment.