Skip to content

Commit e0a57c1

Browse files
srbalakrpamelafox
andauthored
Update app/backend/approaches/chatreadretrieveread.py
Co-authored-by: Pamela Fox <[email protected]>
1 parent 81239a7 commit e0a57c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/backend/approaches/chatreadretrieveread.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def get_messages_from_history(self, prompt_override, follow_up_questions_prompt,
151151
break
152152
return messages
153153

154-
def num_tokens_from_messages(self, message: dict[str,str], model: str):
154+
def num_tokens_from_messages(self, message: dict[str,str], model: str) -> int:
155155
"""
156156
Calculate the number of tokens required to encode a message.
157157
Args:

0 commit comments

Comments
 (0)