次节课在最后一节那块遇到一个提示:~/我的user名字/openai/.venv/lib/python3.11/site-packages/huggingface_hub/utils/_deprecation.py:127: FutureWarning: '__init__' (from 'huggingface_hub.inference_api') is deprecated and will be removed from version '1.0'. `InferenceApi` client is deprecated in favor of the more feature-complete `InferenceClient`. Check out this guide to learn how to convert your script to use it: https://huggingface.co/docs/huggingface_hub/guides/inference#legacy-inferenceapi-client.
warnings.warn(warning_message, FutureWarning)
我更新到最近版本的huggingface-hub 并且使用最新的langchain 语法还是遇到这个问题。 虽然他能执行后面的动作,但是看到这个要废弃的接口我还是不爽。😕