Comments (2)
抱歉回复得晚了。我认为目前ERNIE Bot与OpenAI Python Library不兼容的主要原因有以下几个方面:
- ERNIE Bot在早期研发过程中参考了OpenAI Python Library v0.28的设计,并致力于与当时的OpenAI Python Library在接口风格、使用方式等方面尽可能对齐。然而,在v0.28之后,OpenAI Python Library发布了首个稳定版v1.0,无论是接口还是代码实现基本上都全部重写,与v0.28版本完全不兼容,这导致了现在的ERNIE Bot与OpenAI Python Library看起来“完全不同”。
- 与OpenAI Python Library基本上只支持单后端不同,ERNIE Bot支持几个差异较大的后端,如千帆大模型平台、AI Studio平台、智能创作平台等,因此ERNIE Bot在设计上不得不更多地考虑后端间的差异性(与之相对比,OpenAI Python Library目前以Open AI官方API作为主要的后端,同时以一种“并不很整洁”的方式支持Azure后端)。这一点使得ERNIE Bot在设计上无法完全与OpenAI Python Library对齐,也很可能导致两个库在使用方式上难以兼容,或者至少我们可能得花费更多的精力探索“支持多后端且与OpenAI Python Library在使用方式上对齐”的设计方案。
- ERNIE Bot与OpenAI Python Library还存在一个关键区别:二者支持的大模型不同。实际上,文心大模型与Open AI推出的各系列大模型在功能上并不完全一致,例如:文心对话大模型支持在生成内容时允许模型禁用实时搜索引擎,而GPT系列模型并没有类似的功能;GPT系列模型在一次对话中支持用户指定多条system message,而文心大模型只能指定一条system message。这些差异阻碍了两个库在API参数上的对齐。
诚然,接口风格上的变动可以通过重写代码来跟进,但以上所提到的其它一些不一致,例如对后端重视程度的不同以及API参数上的不一致,仍然使得ERNIE Bot与OpenAI Python Library无法完全兼容。由于OpenAI Python Library的用户更多、应用更广泛,后续我们也将考虑是否增加两个库对齐的程度,尽可能减少用户切换库后的适应成本。
from ernie-sdk.
感谢解答
from ernie-sdk.
Related Issues (20)
- 请问支持tool_calls吗? HOT 7
- 请问使用ERNIE Bot Agent开发,怎么设置system呢? HOT 19
- 多代理模式目前实现了吗 HOT 9
- 自定义 Remote Tool,FastAPI 的web 服务
- 官方提供的remote tool识别ocr报错
- 请求对agents的文档和使用说明进行补全 HOT 1
- 有计划出rust的SDK么 HOT 2
- 请问我自定义的本地工具报这个错误咋回事 for field_name, field_info in cls.model_fields.items(): AttributeError: type object 'BihaiAddTimeIn' has no attribute 'model_fields' HOT 5
- 请问能够接入其他的模型吗?
- ernie-bot-agent 不支持在aistudio的notebook环境中运行 HOT 3
- 自己写了一个RUST SDK,有大佬愿意看看嘛哈哈哈 HOT 1
- function call出了正确结果了,但是最后一步模型回答的还是错误的答案。 HOT 5
- 运行question_bot.py报错请问是哪里出问题了,安装了langchain-community依然报错 HOT 2
- faiss升级faiss.swigfaiss.IndexFlatIP改为faiss.IndexFlatIP HOT 1
- 多代理模式目前实现了吗,coze那个设计的不错 HOT 2
- 星河社区的token(令牌)采用智能体包中的ERNIEBot访问时报[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)')(在Aistudio中调用是正常的) HOT 4
- RemoteToolkit.from_url("http://127.0.0.1:8020")读取openapi.yaml成功,但解析时报错。 HOT 3
- 智能体需要多次执法FC,而在文心返回结果中只有一个FC及其相关参数 HOT 3
- 请问一下运行retrieval_function_call的时候报错是什么原因
- 字段命名拼写错误 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ernie-sdk.