Skip to content

Commit fef2fb1

Browse files
committed
Updated README
1 parent 8bce369 commit fef2fb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Arguments:
3333
* `system_prompt` (`str`): The initial system prompt message.
3434
* `tools` (`List[openai.types.chat.ChatCompletionToolParam]`): (Optional) The tools that will be used in the conversation. These won't be part of the final returned messages, but they will be used to calculate the token count.
3535
* `tool_choice` (`str | dict`): (Optional) The tool choice that will be used in the conversation. This won't be part of the final returned messages, but it will be used to calculate the token count.
36-
* `new_user_message` (`str | List[openai.types.chat.ChatCompletionContentPartParam]`): (Optional) The new user message to append.
36+
* `new_user_content` (`str | List[openai.types.chat.ChatCompletionContentPartParam]`): (Optional) The content of new user message to append.
3737
* `past_messages` (`list[dict]`): (Optional) The list of past messages in the conversation.
3838
* `few_shots` (`list[dict]`): (Optional) A few-shot list of messages to insert after the system prompt.
3939
* `max_tokens` (`int`): (Optional) The maximum number of tokens allowed for the conversation.
@@ -52,7 +52,7 @@ from openai_messages_token_helper import build_messages
5252
messages = build_messages(
5353
model="gpt-35-turbo",
5454
system_prompt="You are a bot.",
55-
new_user_message="That wasn't a good poem.",
55+
new_user_content="That wasn't a good poem.",
5656
past_messages=[
5757
{
5858
"role": "user",

0 commit comments

Comments
 (0)