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

High token usage? #13

Open
Andreanoceras opened this issue Oct 26, 2023 · 8 comments
Open

High token usage? #13

Andreanoceras opened this issue Oct 26, 2023 · 8 comments

Comments

@Andreanoceras
Copy link

Hello! I calculated the token usage with openai tool and it say that text provided as input and output should be around 150 tokens but instead in chatgpt ai usage it says it's around 4000 tokens.

Do you have any ipothesis about? Thank you!

@vizovitin
Copy link
Owner

Please provide specific steps to reproduce, including any history you might have used.
Note that history is included into the context (see "Context length" in the settings).

@Andreanoceras
Copy link
Author

Andreanoceras commented Oct 27, 2023 via email

@vizovitin
Copy link
Owner

Depends on your specific usage and experience with both models. But in majority of cases gpt-3.5 is sufficiently good, so it should be a good starting point. I suggest switching to gpt-4 only if you see specific use cases valuable to you where it performs noticeably better.

@Andreanoceras
Copy link
Author

Andreanoceras commented Oct 27, 2023 via email

@vizovitin
Copy link
Owner

I've set up one at https://ko-fi.com/vizovitin . I'll link it to the repo some time later.

Feel free to use it, but please don't consider yourself in any way obligated to.

I know your use case is slightly different from what I personally use the module for (inspiration source and on-the-fly generation of various tidbits while I GM, as well as rules "reference" to a much lesser extent), so if you have any insight into what works well/poorly for you, it would be much appreciated.

@Andreanoceras
Copy link
Author

Andreanoceras commented Nov 2, 2023 via email

@vizovitin
Copy link
Owner

sometimes it's like the first time i'm chatting with (expecially after some day, don't know if it's because it auto-resets)

This is actually a current implementation limitation. It's mentioned in the corresponding option description:

Context is not shared among users and resets on page reload.

It's certainly possible to lift it, I just didn't consider this feature valuable enough, given that the system doesn't have long-term memory anyway.

And this ties in nicely to the next question.

if you have any tip

Python is a great language to learn! It's also very popular for machine learning, large language models (LLMs), and all that stuff. My advice is: have fun and create a small personal project to train on. It doesn't have to be something complex or new (i.e. it's fine if there's an alternative implementation, which might even be better), but it's best if it's something you are invested in and has a purpose.
Regarding LLMs and GPT models: the funny thing is that these things are typically the simplest part of the applications that use them. Not in the way they work internally, but in the way they are used.

I've been trying to pay on ko-fi but every times I get an error message.

It seems the first attempt was declined due to failed 3D secure confirmation, and then the payment platform decided to block payments from you altogether. I guess they incorrectly considered this suspicious or something. I've asked their support to remove the block. They don't have ETA, but I'll notify you once I hear from them. Thanks for bearing with me, that stuff is new for me, so there are bound to be some bumps on the road.

@vizovitin
Copy link
Owner

So, long story short, Stripe support leaves a LOT to be desired, to put it mildly. They've managed to waste quite a lot of time.

So I've changed the payment provider. Though it took some time for verification in it as well. Hopefully everything should work correctly now.

Next week I'm gonna be a little bit more free, so I plan to do some updates to the module.

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

2 participants