吴恩达Andrew NG 最新开源的Python包:aisuite
#ai##程序员# ——
这使得开发人员可以轻松使用来自多个提供商的大型语言模型。 在构建应用程序时,我发现与多个提供商集成很麻烦。Aisuite 允许你通过更改一个字符串来选择“provider:model”,例如 openai:gpt-4o、anthropic:claude-3-5-sonnet-20241022、ollama:llama3.1:8b 等。
pip install aisuite
代码及说明: github.com/andrewyng/aisuite
ChatGPT