Skip to content

Commit

Permalink
deps: update to latest langchain (#44)
Browse files Browse the repository at this point in the history
Co-authored-by: Douglas Reid <[email protected]>
  • Loading branch information
douglas-reid and Douglas Reid authored May 12, 2023
1 parent 4598bbb commit ca61185
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
steamship~=2.16.4
langchain==0.0.152
langchain==0.0.167
5 changes: 5 additions & 0 deletions src/steamship_langchain/chat_models/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,3 +280,8 @@ def get_num_tokens_from_messages(self, messages: List[BaseMessage]) -> int:
# every reply is primed with <im_start>assistant
num_tokens += 3
return num_tokens

@property
def _llm_type(self) -> str:
"""Return type of chat model."""
return "openai-chat"

0 comments on commit ca61185

Please sign in to comment.