Skip to content

Commit

Permalink
Add automatic infill of missing message content
Browse files Browse the repository at this point in the history
  • Loading branch information
rizerphe committed Sep 29, 2023
1 parent 8b481e5 commit d86093e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions openai_functions/openai_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ def __init__(
"content": message,
}
else:
if "content" not in message:
message["content"] = None
self.message = message

@property
Expand Down
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 = "openai-functions"
version = "1.0.1"
version = "1.0.2"
description = "Simplifies the usage of OpenAI ChatGPT's function calling by generating the schemas and parsing OpenAI's responses for you."
authors = ["rizerphe <44440399+rizerphe@users.noreply.github.com>"]
readme = "README.md"
Expand Down

0 comments on commit d86093e

Please sign in to comment.