Skip to content

Commit a87b79f

Browse files
Add debug logging for create_completion_fn and openai_client
- Include additional debug log statements for create_completion_fn and openai_client - Bump version to 5.1.1 to reflect the minor logging enhancement
1 parent 4145a2e commit a87b79f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

promptic.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from pydantic import BaseModel
1919
from litellm import completion as litellm_completion
2020

21-
__version__ = "5.1.0"
21+
__version__ = "5.1.1"
2222

2323
SystemPrompt = Optional[Union[str, List[str], List[Dict[str, str]]]]
2424

@@ -342,6 +342,8 @@ def wrapper(*args, **kwargs):
342342
self.logger.debug(f"{args = }")
343343
self.logger.debug(f"{kwargs = }")
344344
self.logger.debug(f"{self.cache = }")
345+
self.logger.debug(f"{self.create_completion_fn = }")
346+
self.logger.debug(f"{self.openai_client = }")
345347

346348
if (
347349
self.tools and not self.openai_client

0 commit comments

Comments
 (0)