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

Payload incomplete / error msg #1

Open
Nightreaver opened this issue Feb 19, 2024 · 1 comment
Open

Payload incomplete / error msg #1

Nightreaver opened this issue Feb 19, 2024 · 1 comment

Comments

@Nightreaver
Copy link

3 Things,

firstly, it seems the payload that is sent to openai is not fully propagated. I'm not sure if its because of modules or something else.
The actual payload that is send for example is

Generate a fully-detailed and RICH TTRPG entry for "undefined" from within "undefined" on the following subject: "test".  Expand on "undefined" in granular detail and introduce new subjects within the context of "undefined".  Here is more context on "test" below:
      CONTEXT
      ---
      "123123"
      ---
      
      ADDITIONAL CONSIDERATIONS:
      123123
      ---
    ADHERE TO THE FOLLOWING JSON TEMPLATE:
    '{
    "precedent_subjects": "<Comprehensive Comma-Separated List of Existing Subjects with Precedent EXCLUSIVELY related to test>", 
    "new_subjects": "<Comprehensive Comma-Separated List of Newly Generated, UNPRECEDENTED DISTINCT Subjects EXCLUSIVELY related to test, using PROPER NOUNS>", 
    "subject_expansion": "array detailing each identified precedent_subject and new_subject, ONLY IF RELATED TO test, in an effort to provide RICH content.",
    "output": {"tagName":"div","children":[{"tagName":"p","children":[{"type":"text","content":"[Provide, with context to the original content, a brief introduction to the subject, including its basic definition, nature, and overall significance or relevance in the context it is being addressed.]"}]},{"tagName":"h2","children":[{"type":"text","content":"General Description"}]},{"tagName":"p","children":[{"type":"text","content":"[Offer, with context to the original content, a general description of the subject, focusing on its key characteristics, features, or aspects. This section should lay the foundation for understanding the subject's uniqueness and importance.]"}]}]}" 
    }'
    Emulate and adhere to the formatting and writing style of the CONTEXT provided. All new content must be DIRECTLY related to "test."

you might notice there are 2 undefined in the query. I'm not sure where this comes from.

v0.3.2 with foundry 11.315


2 thing. I'm getting some erros (not your issue btw) like
image

In the completions response im getting more details:

{
    "error": {
        "message": "You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.",
        "type": "insufficient_quota",
        "param": null,
        "code": "insufficient_quota"
    }
}

Would it be possible to just show the message in one of the error messages that pop up ?
Finding it in the dev-tools is not really convenient.


Last minor fix:

change the urls to reflect the repo properly in https://github.com/Daxiongmao87/legend-lore-foundry/blob/main/module.json
From foundry its giving me 404 - because I guess you renamed/moved it.

Cheers

@Daxiongmao87
Copy link
Owner

Thanks for the reports. I'll look into them!

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