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

Crash when using context generated by another model. #30

Open
JG-Adams opened this issue Nov 17, 2024 · 1 comment
Open

Crash when using context generated by another model. #30

JG-Adams opened this issue Nov 17, 2024 · 1 comment

Comments

@JG-Adams
Copy link

I've been adopting the use of generate() and then using the context to give AI memory.
Then I tried seeing what happen when I switch AI model. An assert failed and gave me this.
Assertion failed: it != m_data.m_value.object->end(), file F:/MyStudio/Technology/JG_SDL/engine/OllamaHTTP/json.hpp, line 21472

I don't know if this was even possible since I was able to do the same thing in WebUI and it was able to do fine.
Is this possible? If not, is there a possible way?

@JG-Adams
Copy link
Author

I think this is supposed to function. Can you fix this? I would like it very much!
It does not crash when using the model that uses a context data generated by the same model. It does when you changed model and use context generated by a different model. Maybe it has something to do with how it pass the data in Json? Maybe it was expecting it to be of a certain length? I'm not sure.

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

1 participant