Skip to content

Commit

Permalink
Updates for v1.0.1 (#424)
Browse files Browse the repository at this point in the history
  • Loading branch information
caufieldjh authored Aug 2, 2024
2 parents ba0e109 + 915cdbe commit a2e67c0
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 426 deletions.
438 changes: 17 additions & 421 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "ontogpt"
version = "1.0.0"
version = "1.0.1"
description = "OntoGPT"
authors = ["Chris Mungall <cjmungall@lbl.gov>", "J. Harry Caufield <jhc@lbl.gov>"]
license = "BSD-3"
Expand Down
2 changes: 1 addition & 1 deletion src/ontogpt/clients/llm_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __post_init__(self):
# Get appropriate API key for the model source
# and other details if needed
if self.model.startswith("ollama"):
self.api_key = "" # Don't need an API key
self.api_key = "" # Don't need an API key
if not self.api_key and not self.custom_llm_provider:
self.api_key = get_apikey_value("openai")
elif self.custom_llm_provider == "anthropic":
Expand Down
1 change: 0 additions & 1 deletion src/ontogpt/conf/synonymizer-conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ rules:
match: "(.*) food product"
match_scope: "FOODON"
replacement: "\\1"

3 changes: 2 additions & 1 deletion src/ontogpt/engines/generic_engine.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Synonym engine."""
"""Generic engine."""

import logging
from copy import deepcopy
from dataclasses import dataclass
Expand Down
2 changes: 1 addition & 1 deletion src/ontogpt/engines/pheno_engine.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Reasoner engine."""
"""Pheno engine."""

import json
import logging
Expand Down
1 change: 1 addition & 0 deletions src/ontogpt/io/json_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def eliminate_empty(obj: Any, preserve=False) -> Any:
else:
return obj


def dump_minimal_json(obj: Any, minimize=True, file: Optional[TextIO] = None) -> str:
"""Dump a JSON string, but eliminate Nones and empty lists and dicts."""
if not file:
Expand Down

0 comments on commit a2e67c0

Please sign in to comment.