You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
deftest_initiate_and_fetch_PLUGIN():
plugin=OpenPlugin("CheckTheChain", verbose=True)
assertplugin.manifestisnotNone# DELETEifnotos.path.exists("logs"):
os.makedirs("logs")
withopen("logs/manifest.json", "w") asf:
f.write(json.dumps(plugin.manifest, indent=2))
withopen("logs/functions.json", "w") asf:
f.write(json.dumps(plugin.functions, indent=2))
# create chatgpt request that will call the addTodo functionchatgpt_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,
)
# DELETEwithopen("logs/plugin_response.json", "w") asf:
f.write(json.dumps(response, indent=2))
assertresponseisnotNoneassertresponse["role"] =="function"json_content=json.loads(response["content"])
# Replace the line below with a test for the final output in json_contentraiseException("INTENTIONAL_FAILURE")
Additional context (optional)
Add any other context about the problem here, screenshots,...
The text was updated successfully, but these errors were encountered:
Plugin namespace
CheckTheChain
Error log
Your code (optional)
Additional context (optional)
Add any other context about the problem here, screenshots,...
The text was updated successfully, but these errors were encountered: