Skip to content

Commit 0ea955b

Browse files
committed
minor format fix
1 parent 2d2a295 commit 0ea955b

File tree

4 files changed

+16
-13
lines changed

4 files changed

+16
-13
lines changed

camel/models/azure_openai_model.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,8 @@ def check_model_config(self):
263263
@property
264264
def stream(self) -> bool:
265265
r"""Returns whether the model is in stream mode,
266-
which sends partial results each time.
266+
which sends partial results each time.
267+
267268
Returns:
268269
bool: Whether the model is in stream mode.
269270
"""

camel/models/sglang_model.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,9 @@ def _wait_for_server(base_url: str, timeout: Optional[int] = 30) -> None:
350350
r"""Wait for the server to be ready by polling the /v1/models endpoint.
351351
352352
Args:
353-
base_url: The base URL of the server
354-
timeout: Maximum time to wait in seconds. Default is 30 seconds.
353+
base_url (str): The base URL of the server
354+
timeout (Optional[int]): Maximum time to wait in seconds.
355+
(default: :obj:`30`)
355356
"""
356357
import requests
357358

camel/storages/graph_storages/neo4j_graph.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -343,14 +343,14 @@ def add_triplet(
343343
self, subj: str, obj: str, rel: str, timestamp: Optional[str] = None
344344
) -> None:
345345
r"""Adds a relationship (triplet) between two entities
346-
in the database with a timestamp.
346+
in the database with a timestamp.
347347
348348
Args:
349349
subj (str): The identifier for the subject entity.
350350
obj (str): The identifier for the object entity.
351351
rel (str): The relationship between the subject and object.
352352
timestamp (Optional[str]): The timestamp of the relationship.
353-
Defaults to None.
353+
Defaults to None.
354354
"""
355355
query = """
356356
MERGE (n1:`%s` {id:$subj})
@@ -737,21 +737,23 @@ def get_triplet(
737737
obj: Optional[str] = None,
738738
rel: Optional[str] = None,
739739
) -> List[Dict[str, Any]]:
740-
r"""
741-
Query triplet information. If subj, obj, or rel is
740+
r"""Query triplet information. If subj, obj, or rel is
742741
not specified, returns all matching triplets.
743742
744743
Args:
745744
subj (Optional[str]): The ID of the subject node.
746-
If None, matches any subject node.
745+
If None, matches any subject node.
746+
(default: :obj:`None`)
747747
obj (Optional[str]): The ID of the object node.
748-
If None, matches any object node.
748+
If None, matches any object node.
749+
(default: :obj:`None`)
749750
rel (Optional[str]): The type of relationship.
750-
If None, matches any relationship type.
751+
If None, matches any relationship type.
752+
(default: :obj:`None`)
751753
752754
Returns:
753755
List[Dict[str, Any]]: A list of matching triplets,
754-
each containing subj, obj, rel, and timestamp.
756+
each containing subj, obj, rel, and timestamp.
755757
"""
756758
import logging
757759

examples/models/sglang_model_example.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@
8787
]
8888

8989

90-
r"""
91-
Note that api_key defines the parser used to interpret responses.
90+
r"""Note that api_key defines the parser used to interpret responses.
9291
Currently supported parsers include:
9392
llama3: Llama 3.1 / 3.2 (e.g. meta-llama/Llama-3.1-8B-Instruct,
9493
meta-llama/Llama-3.2-1B-Instruct).

0 commit comments

Comments
 (0)