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

Empty Message error aborted #2

Open
jgwill opened this issue Nov 2, 2024 · 0 comments
Open

Empty Message error aborted #2

jgwill opened this issue Nov 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jgwill
Copy link
Owner

jgwill commented Nov 2, 2024

[7 ] [2024-11-02_17-10-06] Max Retries Exceeded During Generation, Aborting!
Traceback (most recent call last):
  File "/b/Dropbox/g/AIStoryWriter/Writer/Interface/Wrapper.py", line 163, in SafeGenerateJSON
    JSONResponse = json.loads(self.GetLastMessageText(Response))
  File "/home/jgi/anaconda3/envs/AIStoryWriter/lib/python3.10/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/home/jgi/anaconda3/envs/AIStoryWriter/lib/python3.10/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/home/jgi/anaconda3/envs/AIStoryWriter/lib/python3.10/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/b/Dropbox/g/AIStoryWriter/Writer/Interface/Wrapper.py", line 313, in ChatAndStreamResponse
    Stream = self.Clients[_Model].generate_content(
  File "/home/jgi/anaconda3/envs/AIStoryWriter/lib/python3.10/site-packages/google/generativeai/generative_models.py", line 303, in generate_content
    raise TypeError("contents must not be empty")
TypeError: contents must not be empty

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/b/Dropbox/g/AIStoryWriter/Write.py", line 329, in <module>
    Chapter = Writer.Chapter.ChapterGenerator.GenerateChapter(
  File "/b/Dropbox/g/AIStoryWriter/Writer/Chapter/ChapterGenerator.py", line 170, in GenerateChapter
    Stage1Chapter = Writer.Scene.ChapterByScene.ChapterByScene(Interface, _Logger, ThisChapterOutline, _Outline, _BaseContext)
  File "/b/Dropbox/g/AIStoryWriter/Writer/Scene/ChapterByScene.py", line 20, in ChapterByScene
    SceneJSONList = Writer.Scene.ScenesToJSON.ScenesToJSON(Interface, _Logger, SceneBySceneOutline)
  File "/b/Dropbox/g/AIStoryWriter/Writer/Scene/ScenesToJSON.py", line 17, in ScenesToJSON
    _, SceneList = Interface.SafeGenerateJSON(_Logger, MesssageHistory, Writer.Config.CHECKER_MODEL)
  File "/b/Dropbox/g/AIStoryWriter/Writer/Interface/Wrapper.py", line 175, in SafeGenerateJSON
    Response = self.ChatAndStreamResponse(_Logger, _Messages, _Model, random.randint(0, 99999), _Format = "JSON")
  File "/b/Dropbox/g/AIStoryWriter/Writer/Interface/Wrapper.py", line 336, in ChatAndStreamResponse
    raise Exception(
Exception: Generation Failed, Max Retires Exceeded, Aborting

@jgwill jgwill added the bug Something isn't working label Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant