mirror of
https://github.com/deepseek-ai/DeepSeek-V2.git
synced 2026-11-05 00:47:23 +00:00
[GH-ISSUE #33] 无法支持 autogpt 中的 langchain #31
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/DeepSeek-V2#31
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @chenny on GitHub (May 16, 2024).
Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-V2/issues/33
单独 langchain 是支持.

但是在 autogpt 中就不行了.


语言模型
@andakai commented on GitHub (May 23, 2024):
+1
@xyh0202 commented on GitHub (May 28, 2024):
这里报错的是 get_num_tokens_from_messages() 这个方法没有实现,在langchain的源码中,使用非gpt-3.5或者gpt-4的模型,都不支持计算tokens
https://github.com/langchain-ai/langchain/blob/master/libs/partners/openai/langchain_openai/chat_models/base.py