diff --git a/.semversioner/next-release/patch-20260710152344024031.json b/.semversioner/next-release/patch-20260710152344024031.json new file mode 100644 index 0000000000..bf0bbbc74c --- /dev/null +++ b/.semversioner/next-release/patch-20260710152344024031.json @@ -0,0 +1,4 @@ +{ + "type": "patch", + "description": "Fix logging bug." +} diff --git a/.semversioner/next-release/patch-20260710182840267649.json b/.semversioner/next-release/patch-20260710182840267649.json new file mode 100644 index 0000000000..79e4ac5b56 --- /dev/null +++ b/.semversioner/next-release/patch-20260710182840267649.json @@ -0,0 +1,4 @@ +{ + "type": "patch", + "description": "Fix #2389 - Loosen service_tier type to str | None to allow for more flexibility in service tier representation." +} diff --git a/.semversioner/next-release/patch-20260710184002601897.json b/.semversioner/next-release/patch-20260710184002601897.json new file mode 100644 index 0000000000..4fc0bfd9a7 --- /dev/null +++ b/.semversioner/next-release/patch-20260710184002601897.json @@ -0,0 +1,4 @@ +{ + "type": "patch", + "description": "Fix .strip call - resolves #2381" +} diff --git a/packages/graphrag-llm/graphrag_llm/types/types.py b/packages/graphrag-llm/graphrag_llm/types/types.py index 0980cba3aa..7191d8c13e 100644 --- a/packages/graphrag-llm/graphrag_llm/types/types.py +++ b/packages/graphrag-llm/graphrag_llm/types/types.py @@ -94,6 +94,9 @@ class LLMCompletionResponse(ChatCompletion, Generic[ResponseFormat]): formatted_response: ResponseFormat | None = None # type: ignore """Formatted response according to the specified response_format json schema.""" + service_tier: str | None = None # type: ignore + """Loosen the type to str | None to allow for more flexibility in service tier representation.""" + @computed_field @property def content(self) -> str: diff --git a/packages/graphrag/graphrag/cli/index.py b/packages/graphrag/graphrag/cli/index.py index 94a40cde48..68022eb9e5 100644 --- a/packages/graphrag/graphrag/cli/index.py +++ b/packages/graphrag/graphrag/cli/index.py @@ -116,7 +116,7 @@ def _run_index( ) if dry_run: - logger.info("Dry run complete, exiting...", True) + logger.info("Dry run complete, exiting...") sys.exit(0) _register_signal_handlers() diff --git a/packages/graphrag/graphrag/config/models/graph_rag_config.py b/packages/graphrag/graphrag/config/models/graph_rag_config.py index 1b753d58fc..eb32b3e5a7 100644 --- a/packages/graphrag/graphrag/config/models/graph_rag_config.py +++ b/packages/graphrag/graphrag/config/models/graph_rag_config.py @@ -270,7 +270,7 @@ def _validate_vector_store_db_uri(self) -> None: """Validate the vector store configuration.""" store = self.vector_store if store.type == VectorStoreType.LanceDB: - if not store.db_uri or store.db_uri.strip == "": + if not store.db_uri or store.db_uri.strip() == "": store.db_uri = graphrag_config_defaults.vector_store.db_uri store.db_uri = str(Path(store.db_uri).resolve())