Skip to content

CheckTheChain plugin error #3

Open

Description

@CakeCrusher

Plugin namespace
CheckTheChain

Error log

E           requests.exceptions.MissingSchema: Invalid URL '//api/query': No scheme supplied. Perhaps you meant https:////api/query?

envOpenPluginApi\lib\site-packages\requests\models.py:439: MissingSchema

Your code (optional)

def test_initiate_and_fetch_PLUGIN():
    plugin = OpenPlugin("CheckTheChain", verbose=True)
    assert plugin.manifest is not None

    # DELETE
    if not os.path.exists("logs"):
        os.makedirs("logs")
    with open("logs/manifest.json", "w") as f:
        f.write(json.dumps(plugin.manifest, indent=2))
    with open("logs/functions.json", "w") as f:
        f.write(json.dumps(plugin.functions, indent=2))
    
    # create chatgpt request that will call the addTodo function
    chatgpt_prompt = 'Show me the amount of nodes on the ethereum blockchain'
    response = plugin.fetch_plugin(
        prompt=chatgpt_prompt,
        model="gpt-3.5-turbo-0613",
        temperature=0,
    )

    # DELETE
    with open("logs/plugin_response.json", "w") as f:
        f.write(json.dumps(response, indent=2))

    assert response is not None
    assert response["role"] == "function"
    json_content = json.loads(response["content"])

    # Replace the line below with a test for the final output in json_content
    raise Exception("INTENTIONAL_FAILURE")

Additional context (optional)
Add any other context about the problem here, screenshots,...

Activity

  1. self-assigned this
    on Jul 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions