Why is my debugger not showing anything?

Nice feature.

The debugger doesn’t show anything for me, and the /logs/ page reports;

DiscourseAi::Completions::Endpoints::OpenAi: status: 400 - body: { "error": { "message": "Invalid schema for function 'scraper': False is not of type 'array'.", "type": "invalid_reques
7:28 pm
Job exception: { "error": { "message": "Invalid schema for function 'scraper': False is not of type 'array'.", "type": "invalid_request_error", "param": "tools[6].function.paramete
7:28 pm
Job exception: {
  "error": {
    "message": "Invalid schema for function 'scraper': False is not of type 'array'.",
    "type": "invalid_request_error",
    "param": "tools[6].function.parameters",
    "code": "invalid_function_parameters"
  }
}

I had a more advanced code to do the proxy browsing, but I dumbed it down to something very similar like the example browsing tool:

let url;
function invoke(params) {
  url = params.url;
  const apiKey = "KEY";
  const requestUrl = `https://myproxy.com/?api_key=${apiKey}&url=${url}`;

  result = http.get(requestUrl);
  return llm.truncate(result.body, 15000);
}

function details() {
  return "Scrapes a website";
}

The enum bug should be fixed per my last commit:

2 Likes