Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyCAI.chat.send_message() missing 1 required positional argument: 'history_id' #95

Open
Pavex53 opened this issue Mar 28, 2024 · 6 comments

Comments

@Pavex53
Copy link

Pavex53 commented Mar 28, 2024

I have multiple problems. I can only find Character ID and my char_token. But no history ID. There is none. If I try other scripts, I get same error like others with Json.

@vAdrian2424
Copy link

where did you find your char_token??

@Pavex53
Copy link
Author

Pavex53 commented Mar 29, 2024

where did you find your char_token??

You need to open the chat with your character in beta version. Write beta.character.ai etc. with normal version you can't see it

@NoOneIsHereExceptMe
Copy link

did anyone find the history_id?

@Pavex53
Copy link
Author

Pavex53 commented Apr 2, 2024

Didn't find it yet

@Karvp
Copy link

Karvp commented Apr 8, 2024

I know it's quite late but still hope this helpful to someone.

The history id is the value returned when you call get_chat() below a key named 'external_id'. You can see it quite clear in this example:

# ...
    data = client.chat.send_message(
        chat['external_id'], tgt, message
    )
# ...

For the json error, you might want to try #93

@Pavex53
Copy link
Author

Pavex53 commented Apr 13, 2024

He fixed it his code works now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants