gptscript-ai / gptscript

Build AI assistants that interact with your systems
https://gptscript.ai
Apache License 2.0
2.89k stars 257 forks source link

Improve logging related to workspace context to allow for the workspace directory to be printed. #505

Open sangee2004 opened 2 months ago

sangee2004 commented 2 months ago

gptscript version v0.8.2+1b5e068f

Steps to reproduce the problem:

  1. Execute script with workspace option - gptscript --disable-cache --workspace=/Users/sangeethahariharan/data testimagevision.gpt

  2. Notice that the logs relating to workspace context has the workspace directory truncated (...)

gptscript --disable-cache --workspace=/Users/sangeethahariharan/data  testimagevisioncontext.gpt
16:35:54 started  [main]
16:35:54 started  [context: github.com/gptscript-ai/context/workspace]
16:35:54 sent     [context: github.com/gptscript-ai/context/workspace]
16:35:54 ended    [context: github.com/gptscript-ai/context/workspace] [output=The current working directory is: \"/Users/sangeethahariharan/gptscript\"\nThe workspace directory is \"...]
16:35:55 sent     [main]
cjellick commented 2 months ago

Just closing this for a demo. will reopen!