Git Product home page Git Product logo

Comments (4)

Obs01ete avatar Obs01ete commented on June 12, 2024

I think the misunderstanding comes from the following.

There are two AI agents:

  1. AI user
  2. AI assistant

And there are two orthogonal "roles at backend":

  1. user
  2. 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.

@lightaime

from camel.

Obs01ete avatar Obs01ete commented on June 12, 2024

Anyway, @zhiyu-01 please create a PR for this ticket and put the test that you made earlier here.

from camel.

zhiyu-01 avatar zhiyu-01 commented on June 12, 2024

I have printed out the user's ChatRecord, it should be in sequence as ['system', 'assistant', 'user'], but we just get a chaos:
user

The intersting thing is the agent didn't get confused in other role plyaing example, even the chatrecord is also out of order:
image

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.

Obs01ete avatar Obs01ete commented on June 12, 2024

@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?

@lightaime

from camel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.