gptscript-ai/gptscript

Running the "Hello World" example returns a 404

Closed this issue · 3 comments

I get a proper response via curl https://get.gptscript.ai, but not when I run the example provided:

gptscript https://get.gptscript.ai/echo.gpt --input 'Hello, World!'

That's because there may be an "issue" handling urls and paths around

url = path + "/" + name
that causes

  • https://get.gptscript.ai/echo.gpt to become
  • https://get.gptscript.ai//echo.gpt (double slash on path) hence the 404
$ gptscript 'https://get.gptscript.ai/echo.gpt' --input 'Hello, World!' 
2024/03/11 11:41:39 error loading https://get.gptscript.ai//echo.gpt: 404 Not Found

fixed by #165

Can confirm that this is fixed! Thank you!