Comments (4)
I think the misunderstanding comes from the following.
There are two AI agents:
- AI user
- AI assistant
And there are two orthogonal "roles at backend":
- user
- assistant
which are related to OpenAI API.
This is quite untrivial and the naming is not ideal, I agree. Please take this into account and update us if you think that the bug is still there.
from camel.
Anyway, @zhiyu-01 please create a PR for this ticket and put the test that you made earlier here.
from camel.
I have printed out the user's ChatRecord, it should be in sequence as ['system', 'assistant', 'user'], but we just get a chaos:
The intersting thing is the agent didn't get confused in other role plyaing example, even the chatrecord is also out of order:
Besides, the ChatRecord containts two properties, role_at_back_end and message, the message is also containts the role type and content properties, what openai api need is {'role': role, 'content': content}, here seems have a little redundant. Should we consider a chage in the ChatRecord class?
@Obs01ete
from camel.
@zhiyu-01 Please take the test
def test_role_playing_role_sequence(model_type=None):
and put it into a new PR for this ticket. Make sure that the test checks for the following sequence:
[lightaime](https://github.com/lightaime) [yesterday](https://github.com/camel-ai/camel/issues/298#r1335667054)
I have some doubts about this test. Should it be ['system', 'user', 'assistant', 'user', 'assistant', ...] normally?
from camel.
Related Issues (20)
- [Feature Request] Clarify Agent for Multi-agent task specification
- [Feature Request] check_consistency_agent && conflicts_resolving_agent
- [Question] Rename `utils.functions` to `utils.common` HOT 2
- Edmund He
- [Feature Request] Implement `InterCode`
- [Roadmap] Add new OpenAI APIs
- [Feature Request] Integration of Assistant API into Assistant Role within Role-Playing Mode
- [Feature Request] Bump `openai` package to v1.1.0
- [Feature Request] Support `Enum` type in function calling
- [Feature Request] Implementing a Prompt Engineer Review Process based on GPTs for Enhanced Agent Performance
- [BUG] Excessive Usage of OpenAI APIs on Every Git Push HOT 2
- [Feature Request] Data ETL(extract, transform, and load)
- [Feature Request] Add Updated OpenAI APIs (Files, Assistants) HOT 1
- [Feature Request] Add JSON mode HOT 1
- [Feature Request] Reproducing the dataset HOT 1
- [Roadmap] Multi-Agents Framework Based on Task-Driven and Dynamic Environment Maintenance
- [Roadmap] Improve `model` subpackage
- [Feature Request] Frontend for Agent Interaction
- [Feature Request] Create REST API for Camel Agents
- [Question] what's the difference between camel and chatarena? 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 camel.