Open
Description
Server - gptscript version v0.0.0-dev-6ae47242-dirty
Steps to reproduce the problem:
- Clone https://github.com/gptscript-ai/gptscript
- Execute -
examples/count-lines-of-code.gpt
fromgptscript
directory.
Script fails making parallel tool calls to count
with array too long. Expected an array with maximum length 128, but got an array with length 129 instead
error.
content [1] content | Waiting for model response...10:35:57 usage [total=3747] [prompt=1418] [completion=2329]
2024/06/25 10:35:57 error, status code: 400, message: Invalid 'messages[3].tool_calls': array too long. Expected an array with maximum length 128, but got an array with length 129 instead.
Number of go files in the directory is 129:
ls -d -- **/*.go | wc -l
129
Note - When I reduce the number of go files to 128 , then the script succeeds.
gptscript --disable-cache examples/count-lines-of-code.gpt
10:35:00 started [main]
10:35:00 sent [main]
content [1] content | Waiting for model response...
content [1] content | <tool call> find -> {"pattern":"*.go"}
10:35:02 started [sys.find(2)] [input={"pattern":"*.go"}]
10:35:02 sent [sys.find(2)]
10:35:03 ended [sys.find(2)] [output=internal/fs.go\nmain.go\npkg/assemble/assemble.go\npkg/auth/auth.go\npkg/builtin/builtin.go\npkg/builtin/...]
10:35:03 continue [main]
10:35:03 sent [main]
content [1] content | Waiting for model response...
content [1] content | <tool call> count -> {"file": "internal/fs.go"}
content [1] content | <tool call> count -> {"file": "main.go"}
content [1] content | <tool call> count -> {"file": "pkg/assemble/assemble.go"}
content [1] content | <tool call> count -> {"file": "pkg/auth/auth.go"}
content [1] content | <tool call> count -> {"file": "pkg/builtin/builtin.go"}
content [1] content | <tool call> count -> {"file": "pkg/builtin/builtin_test.go"}
content [1] content | <tool call> count -> {"file": "pkg/builtin/defaults.go"}
content [1] content | <tool call> count -> {"file": "pkg/builtin/log.go"}
content [1] content | <tool call> count -> {"file": "pkg/cache/cache.go"}
content [1] content | <tool call> count -> {"file": "pkg/chat/chat.go"}
content [1] content | <tool call> count -> {"file": "pkg/chat/readline.go"}
content [1] content | <tool call> count -> {"file": "pkg/cli/credential.go"}
content [1] content | <tool call> count -> {"file": "pkg/cli/credential_delete.go"}
content [1] content | <tool call> count -> {"file": "pkg/cli/credential_show.go"}
content [1] content | <tool call> count -> {"file": "pkg/cli/eval.go"}
content [1] content | <tool call> count -> {"file": "pkg/cli/fmt.go"}
content [1] content | <tool call> count -> {"file": "pkg/cli/gptscript.go"}
content [1] content | <tool call> count -> {"file": "pkg/cli/log.go"}
content [1] content | <tool call> count -> {"file": "pkg/cli/main.go"}
content [1] content | <tool call> count -> {"file": "pkg/cli/parse.go"}
content [1] content | <tool call> count -> {"file": "pkg/cli/sdk_server.go"}
content [1] content | <tool call> count -> {"file": "pkg/config/cliconfig.go"}
content [1] content | <tool call> count -> {"file": "pkg/context/context.go"}
content [1] content | <tool call> count -> {"file": "pkg/counter/counter.go"}
content [1] content | <tool call> count -> {"file": "pkg/credentials/credential.go"}
content [1] content | <tool call> count -> {"file": "pkg/credentials/helper.go"}
content [1] content | <tool call> count -> {"file": "pkg/credentials/noop.go"}
content [1] content | <tool call> count -> {"file": "pkg/credentials/store.go"}
content [1] content | <tool call> count -> {"file": "pkg/credentials/util.go"}
content [1] content | <tool call> count -> {"file": "pkg/daemon/daemon.go"}
content [1] content | <tool call> count -> {"file": "pkg/debugcmd/debug.go"}
content [1] content | <tool call> count -> {"file": "pkg/debugcmd/log.go"}
content [1] content | <tool call> count -> {"file": "pkg/embedded/embed.go"}
content [1] content | <tool call> count -> {"file": "pkg/engine/cmd.go"}
content [1] content | <tool call> count -> {"file": "pkg/engine/daemon.go"}
content [1] content | <tool call> count -> {"file": "pkg/engine/engine.go"}
content [1] content | <tool call> count -> {"file": "pkg/engine/http.go"}
content [1] content | <tool call> count -> {"file": "pkg/engine/log.go"}
content [1] content | <tool call> count -> {"file": "pkg/engine/openapi.go"}
content [1] content | <tool call> count -> {"file": "pkg/engine/openapi_test.go"}
content [1] content | <tool call> count -> {"file": "pkg/engine/print.go"}
content [1] content | <tool call> count -> {"file": "pkg/env/env.go"}
content [1] content | <tool call> count -> {"file": "pkg/env/log.go"}
content [1] content | <tool call> count -> {"file": "pkg/gptscript/gptscript.go"}
content [1] content | <tool call> count -> {"file": "pkg/hash/seed.go"}
content [1] content | <tool call> count -> {"file": "pkg/hash/sha256.go"}
content [1] content | <tool call> count -> {"file": "pkg/input/input.go"}
content [1] content | <tool call> count -> {"file": "pkg/input/log.go"}
content [1] content | <tool call> count -> {"file": "pkg/llm/registry.go"}
content [1] content | <tool call> count -> {"file": "pkg/loader/github/github.go"}
content [1] content | <tool call> count -> {"file": "pkg/loader/github/github_test.go"}
content [1] content | <tool call> count -> {"file": "pkg/loader/loader.go"}
content [1] content | <tool call> count -> {"file": "pkg/loader/loader_test.go"}
content [1] content | <tool call> count -> {"file": "pkg/loader/log.go"}
content [1] content | <tool call> count -> {"file": "pkg/loader/openapi.go"}
content [1] content | <tool call> count -> {"file": "pkg/loader/url.go"}
content [1] content | <tool call> count -> {"file": "pkg/loader/vcs/init.go"}
content [1] content | <tool call> count -> {"file": "pkg/monitor/display.go"}
content [1] content | <tool call> count -> {"file": "pkg/monitor/fd.go"}
content [1] content | <tool call> count -> {"file": "pkg/monitor/log.go"}
content [1] content | <tool call> count -> {"file": "pkg/mvl/log.go"}
content [1] content | <tool call> count -> {"file": "pkg/openai/client.go"}
content [1] content | <tool call> count -> {"file": "pkg/openai/client_test.go"}
content [1] content | <tool call> count -> {"file": "pkg/parser/parser.go"}
content [1] content | <tool call> count -> {"file": "pkg/parser/parser_test.go"}
content [1] content | <tool call> count -> {"file": "pkg/prompt/credential.go"}
content [1] content | <tool call> count -> {"file": "pkg/prompt/log.go"}
content [1] content | <tool call> count -> {"file": "pkg/prompt/prompt.go"}
content [1] content | <tool call> count -> {"file": "pkg/prompt/server.go"}
content [1] content | <tool call> count -> {"file": "pkg/remote/remote.go"}
content [1] content | <tool call> count -> {"file": "pkg/repos/download/extract.go"}
content [1] content | <tool call> count -> {"file": "pkg/repos/get.go"}
content [1] content | <tool call> count -> {"file": "pkg/repos/get_test.go"}
content [1] content | <tool call> count -> {"file": "pkg/repos/git/cmd.go"}
content [1] content | <tool call> count -> {"file": "pkg/repos/git/git.go"}
content [1] content | <tool call> count -> {"file": "pkg/repos/git/git_test.go"}
content [1] content | <tool call> count -> {"file": "pkg/repos/git/log.go"}
content [1] content | <tool call> count -> {"file": "pkg/repos/log.go"}
content [1] content | <tool call> count -> {"file": "pkg/repos/runtimes/default.go"}
content [1] content | <tool call> count -> {"file": "pkg/repos/runtimes/golang/golang.go"}
content [1] content | <tool call> count -> {"file": "pkg/repos/runtimes/golang/golang_test.go"}
content [1] content | <tool call> count -> {"file": "pkg/repos/runtimes/golang/log.go"}
content [1] content | <tool call> count -> {"file": "pkg/repos/runtimes/golang/testdata/main.go"}
content [1] content | <tool call> count -> {"file": "pkg/repos/runtimes/node/log.go"}
content [1] content | <tool call> count -> {"file": "pkg/repos/runtimes/node/node.go"}
content [1] content | <tool call> count -> {"file": "pkg/repos/runtimes/node/node_test.go"}
content [1] content | <tool call> count -> {"file": "pkg/repos/runtimes/python/generate/generate.go"}
content [1] content | <tool call> count -> {"file": "pkg/repos/runtimes/python/log.go"}
content [1] content | <tool call> count -> {"file": "pkg/repos/runtimes/python/python.go"}
content [1] content | <tool call> count -> {"file": "pkg/repos/runtimes/python/python_test.go"}
content [1] content | <tool call> count -> {"file": "pkg/runner/credentials.go"}
content [1] content | <tool call> count -> {"file": "pkg/runner/input.go"}
content [1] content | <tool call> count -> {"file": "pkg/runner/log.go"}
content [1] content | <tool call> count -> {"file": "pkg/runner/monitor.go"}
content [1] content | <tool call> count -> {"file": "pkg/runner/output.go"}
content [1] content | <tool call> count -> {"file": "pkg/runner/parallel.go"}
content [1] content | <tool call> count -> {"file": "pkg/runner/runner.go"}
content [1] content | <tool call> count -> {"file": "pkg/runner/runtimemanager.go"}
content [1] content | <tool call> count -> {"file": "pkg/sdkserver/confirm.go"}
content [1] content | <tool call> count -> {"file": "pkg/sdkserver/middleware.go"}
content [1] content | <tool call> count -> {"file": "pkg/sdkserver/monitor.go"}
content [1] content | <tool call> count -> {"file": "pkg/sdkserver/prompt.go"}
content [1] content | <tool call> count -> {"file": "pkg/sdkserver/routes.go"}
content [1] content | <tool call> count -> {"file": "pkg/sdkserver/run.go"}
content [1] content | <tool call> count -> {"file": "pkg/sdkserver/server.go"}
content [1] content | <tool call> count -> {"file": "pkg/sdkserver/types.go"}
content [1] content | <tool call> count -> {"file": "pkg/server/server.go"}
content [1] content | <tool call> count -> {"file": "pkg/system/bin.go"}
content [1] content | <tool call> count -> {"file": "pkg/system/currentbin.go"}
content [1] content | <tool call> count -> {"file": "pkg/system/prompt.go"}
content [1] content | <tool call> count -> {"file": "pkg/tests/judge/judge.go"}
content [1] content | <tool call> count -> {"file": "pkg/tests/runner_test.go"}
content [1] content | <tool call> count -> {"file": "pkg/tests/smoke/smoke_test.go"}
content [1] content | <tool call> count -> {"file": "pkg/tests/testdata/TestSysContext/test.go"}
content [1] content | <tool call> count -> {"file": "pkg/tests/tester/runner.go"}
content [1] content | <tool call> count -> {"file": "pkg/types/completion.go"}
content [1] content | <tool call> count -> {"file": "pkg/types/credential_test.go"}
content [1] content | <tool call> count -> {"file": "pkg/types/jsonschema.go"}
content [1] content | <tool call> count -> {"file": "pkg/types/log.go"}
content [1] content | <tool call> count -> {"file": "pkg/types/prompt.go"}
content [1] content | <tool call> count -> {"file": "pkg/types/set.go"}
content [1] content | <tool call> count -> {"file": "pkg/types/tool.go"}
content [1] content | <tool call> count -> {"file": "pkg/types/tool_test.go"}
content [1] content | <tool call> count -> {"file": "pkg/types/toolname.go"}
content [1] content | <tool call> count -> {"file": "pkg/types/toolname_test.go"}
content [1] content | <tool call> count -> {"file": "pkg/types/toolstring.go"}
content [1] content | <tool call> count -> {"file": "pkg/version/version.go"}
content [1] content | <tool call> count -> {"file": "static/fs.go"}
content [1] content | <tool call> count -> {"file": "tools/gendocs/main.go"}
10:35:57 started [count(3)] [input={"file": "pkg/sdkserver/middleware.go"}]
10:35:57 started [count(4)] [input={"file": "pkg/types/tool_test.go"}]
10:35:57 started [count(5)] [input={"file": "pkg/repos/git/cmd.go"}]
10:35:57 started [count(6)] [input={"file": "pkg/repos/runtimes/default.go"}]
10:35:57 started [count(7)] [input={"file": "pkg/parser/parser_test.go"}]
10:35:57 started [count(8)] [input={"file": "tools/gendocs/main.go"}]
10:35:57 started [count(9)] [input={"file": "pkg/repos/git/log.go"}]
10:35:57 started [count(10)] [input={"file": "pkg/repos/download/extract.go"}]
10:35:57 started [count(11)] [input={"file": "pkg/repos/git/git_test.go"}]
10:35:57 sent [count(5)]
10:35:57 started [count(12)] [input={"file": "pkg/loader/loader_test.go"}]
10:35:57 started [count(13)] [input={"file": "pkg/debugcmd/log.go"}]
10:35:57 started [count(14)] [input={"file": "pkg/input/input.go"}]
10:35:57 started [count(15)] [input={"file": "pkg/runner/runner.go"}]
10:35:57 started [count(16)] [input={"file": "pkg/daemon/daemon.go"}]
10:35:57 started [count(17)] [input={"file": "pkg/sdkserver/types.go"}]
10:35:57 started [count(18)] [input={"file": "pkg/context/context.go"}]
10:35:57 started [count(19)] [input={"file": "static/fs.go"}]
10:35:57 sent [count(7)]
10:35:57 started [count(20)] [input={"file": "pkg/tests/tester/runner.go"}]
10:35:57 started [count(21)] [input={"file": "pkg/builtin/builtin.go"}]
10:35:57 sent [count(18)]
10:35:57 started [count(22)] [input={"file": "pkg/engine/openapi.go"}]
10:35:57 sent [count(8)]
10:35:57 started [count(23)] [input={"file": "pkg/repos/runtimes/python/log.go"}]
10:35:57 sent [count(21)]
10:35:57 started [count(24)] [input={"file": "pkg/loader/github/github.go"}]
10:35:57 started [count(25)] [input={"file": "pkg/repos/get.go"}]
10:35:57 started [count(26)] [input={"file": "pkg/repos/runtimes/golang/testdata/main.go"}]
10:35:57 started [count(27)] [input={"file": "pkg/runner/runtimemanager.go"}]
10:35:57 started [count(28)] [input={"file": "pkg/cli/credential_show.go"}]
10:35:57 started [count(29)] [input={"file": "pkg/builtin/log.go"}]
10:35:57 started [count(30)] [input={"file": "pkg/types/toolname.go"}]
10:35:57 started [count(31)] [input={"file": "pkg/repos/runtimes/node/log.go"}]
10:35:57 started [count(32)] [input={"file": "pkg/cli/credential.go"}]
10:35:57 started [count(33)] [input={"file": "pkg/engine/http.go"}]
10:35:57 started [count(34)] [input={"file": "pkg/loader/openapi.go"}]
10:35:57 started [count(35)] [input={"file": "pkg/runner/parallel.go"}]
10:35:57 started [count(36)] [input={"file": "pkg/types/credential_test.go"}]
10:35:57 started [count(37)] [input={"file": "pkg/input/log.go"}]
10:35:57 started [count(38)] [input={"file": "pkg/chat/readline.go"}]
10:35:57 started [count(39)] [input={"file": "pkg/assemble/assemble.go"}]
10:35:57 started [count(40)] [input={"file": "pkg/sdkserver/routes.go"}]
10:35:57 started [count(41)] [input={"file": "pkg/repos/runtimes/golang/golang_test.go"}]
10:35:57 started [count(42)] [input={"file": "pkg/engine/daemon.go"}]
10:35:57 started [count(43)] [input={"file": "pkg/repos/runtimes/golang/golang.go"}]
10:35:57 started [count(44)] [input={"file": "pkg/server/server.go"}]
10:35:57 started [count(45)] [input={"file": "pkg/monitor/log.go"}]
10:35:57 started [count(46)] [input={"file": "pkg/repos/get_test.go"}]
10:35:57 started [count(47)] [input={"file": "pkg/prompt/prompt.go"}]
10:35:57 started [count(48)] [input={"file": "pkg/hash/sha256.go"}]
10:35:57 started [count(49)] [input={"file": "pkg/repos/git/git.go"}]
10:35:57 started [count(50)] [input={"file": "pkg/version/version.go"}]
10:35:57 started [count(51)] [input={"file": "pkg/gptscript/gptscript.go"}]
10:35:57 started [count(52)] [input={"file": "pkg/counter/counter.go"}]
10:35:57 started [count(53)] [input={"file": "pkg/sdkserver/run.go"}]
10:35:57 started [count(54)] [input={"file": "pkg/types/toolname_test.go"}]
10:35:57 started [count(55)] [input={"file": "pkg/prompt/log.go"}]
10:35:57 started [count(56)] [input={"file": "pkg/mvl/log.go"}]
10:35:57 started [count(57)] [input={"file": "main.go"}]
10:35:57 started [count(58)] [input={"file": "pkg/types/prompt.go"}]
10:35:57 started [count(59)] [input={"file": "pkg/loader/github/github_test.go"}]
10:35:57 started [count(60)] [input={"file": "pkg/cli/main.go"}]
10:35:57 started [count(61)] [input={"file": "pkg/loader/log.go"}]
10:35:57 started [count(62)] [input={"file": "pkg/llm/registry.go"}]
10:35:57 started [count(63)] [input={"file": "pkg/debugcmd/debug.go"}]
10:35:57 started [count(64)] [input={"file": "pkg/repos/runtimes/node/node.go"}]
10:35:57 started [count(65)] [input={"file": "pkg/system/bin.go"}]
10:35:57 started [count(66)] [input={"file": "pkg/config/cliconfig.go"}]
10:35:57 started [count(67)] [input={"file": "pkg/hash/seed.go"}]
10:35:57 started [count(68)] [input={"file": "pkg/builtin/defaults.go"}]
10:35:57 started [count(69)] [input={"file": "pkg/prompt/server.go"}]
10:35:57 started [count(70)] [input={"file": "pkg/engine/cmd.go"}]
10:35:57 started [count(71)] [input={"file": "pkg/credentials/noop.go"}]
10:35:57 started [count(72)] [input={"file": "pkg/system/currentbin.go"}]
10:35:57 started [count(73)] [input={"file": "pkg/repos/runtimes/node/node_test.go"}]
10:35:57 started [count(74)] [input={"file": "pkg/monitor/display.go"}]
10:35:57 sent [count(10)]
10:35:57 started [count(75)] [input={"file": "pkg/cli/fmt.go"}]
10:35:57 started [count(76)] [input={"file": "pkg/sdkserver/monitor.go"}]
10:35:57 started [count(77)] [input={"file": "pkg/loader/url.go"}]
10:35:57 started [count(78)] [input={"file": "pkg/credentials/store.go"}]
10:35:57 sent [count(3)]
10:35:57 started [count(79)] [input={"file": "pkg/openai/client.go"}]
10:35:57 started [count(80)] [input={"file": "pkg/runner/output.go"}]
10:35:57 started [count(81)] [input={"file": "pkg/cli/parse.go"}]
10:35:57 started [count(82)] [input={"file": "pkg/env/log.go"}]
10:35:57 started [count(83)] [input={"file": "pkg/embedded/embed.go"}]
10:35:57 started [count(84)] [input={"file": "pkg/types/toolstring.go"}]
10:35:57 started [count(85)] [input={"file": "pkg/chat/chat.go"}]
10:35:57 started [count(86)] [input={"file": "pkg/sdkserver/confirm.go"}]
10:35:57 started [count(87)] [input={"file": "pkg/parser/parser.go"}]
10:35:57 sent [count(9)]
10:35:57 started [count(88)] [input={"file": "pkg/repos/runtimes/golang/log.go"}]
10:35:57 started [count(89)] [input={"file": "pkg/sdkserver/prompt.go"}]
10:35:57 started [count(90)] [input={"file": "pkg/tests/smoke/smoke_test.go"}]
10:35:57 started [count(91)] [input={"file": "pkg/cache/cache.go"}]
10:35:57 started [count(92)] [input={"file": "pkg/tests/runner_test.go"}]
10:35:57 sent [count(6)]
10:35:57 sent [count(11)]
10:35:57 started [count(93)] [input={"file": "pkg/types/jsonschema.go"}]
10:35:57 sent [count(12)]
10:35:57 started [count(94)] [input={"file": "pkg/remote/remote.go"}]
10:35:57 started [count(95)] [input={"file": "pkg/loader/vcs/init.go"}]
10:35:57 started [count(96)] [input={"file": "pkg/engine/engine.go"}]
10:35:57 started [count(97)] [input={"file": "pkg/engine/openapi_test.go"}]
10:35:57 started [count(98)] [input={"file": "pkg/repos/runtimes/python/python.go"}]
10:35:57 started [count(99)] [input={"file": "internal/fs.go"}]
10:35:57 started [count(100)] [input={"file": "pkg/types/set.go"}]
10:35:57 started [count(101)] [input={"file": "pkg/loader/loader.go"}]
10:35:57 started [count(102)] [input={"file": "pkg/runner/input.go"}]
10:35:57 started [count(103)] [input={"file": "pkg/types/log.go"}]
10:35:57 started [count(104)] [input={"file": "pkg/repos/log.go"}]
10:35:57 started [count(105)] [input={"file": "pkg/repos/runtimes/python/generate/generate.go"}]
10:35:57 started [count(106)] [input={"file": "pkg/prompt/credential.go"}]
10:35:57 started [count(107)] [input={"file": "pkg/types/completion.go"}]
10:35:57 started [count(108)] [input={"file": "pkg/types/tool.go"}]
10:35:57 started [count(109)] [input={"file": "pkg/cli/credential_delete.go"}]
10:35:57 started [count(110)] [input={"file": "pkg/cli/gptscript.go"}]
10:35:57 sent [count(107)]
10:35:57 started [count(111)] [input={"file": "pkg/engine/log.go"}]
10:35:57 sent [count(110)]
10:35:57 started [count(112)] [input={"file": "pkg/cli/eval.go"}]
10:35:57 started [count(113)] [input={"file": "pkg/credentials/credential.go"}]
10:35:57 started [count(114)] [input={"file": "pkg/monitor/fd.go"}]
10:35:57 started [count(115)] [input={"file": "pkg/runner/monitor.go"}]
10:35:57 started [count(116)] [input={"file": "pkg/credentials/util.go"}]
10:35:57 started [count(117)] [input={"file": "pkg/credentials/helper.go"}]
10:35:57 started [count(118)] [input={"file": "pkg/tests/testdata/TestSysContext/test.go"}]
10:35:57 sent [count(15)]
10:35:57 started [count(119)] [input={"file": "pkg/system/prompt.go"}]
10:35:57 started [count(120)] [input={"file": "pkg/auth/auth.go"}]
10:35:57 started [count(121)] [input={"file": "pkg/builtin/builtin_test.go"}]
10:35:57 started [count(122)] [input={"file": "pkg/cli/log.go"}]
10:35:57 started [count(123)] [input={"file": "pkg/openai/client_test.go"}]
10:35:57 sent [count(13)]
10:35:57 started [count(124)] [input={"file": "pkg/runner/credentials.go"}]
10:35:57 started [count(125)] [input={"file": "pkg/engine/print.go"}]
10:35:57 sent [count(4)]
10:35:57 started [count(126)] [input={"file": "pkg/sdkserver/server.go"}]
10:35:57 started [count(127)] [input={"file": "pkg/repos/runtimes/python/python_test.go"}]
10:35:57 sent [count(14)]
10:35:57 started [count(128)] [input={"file": "pkg/runner/log.go"}]
10:35:57 started [count(129)] [input={"file": "pkg/cli/sdk_server.go"}]
10:35:57 started [count(130)] [input={"file": "pkg/tests/judge/judge.go"}]
10:35:57 sent [count(16)]
10:35:57 sent [count(17)]
10:35:57 sent [count(19)]
10:35:57 sent [count(20)]
10:35:57 sent [count(22)]
10:35:57 sent [count(24)]
10:35:57 sent [count(26)]
10:35:57 sent [count(23)]
10:35:57 sent [count(28)]
10:35:57 sent [count(27)]
10:35:57 sent [count(25)]
10:35:57 sent [count(29)]
10:35:57 sent [count(30)]
10:35:57 sent [count(32)]
10:35:57 sent [count(35)]
10:35:57 sent [count(31)]
10:35:57 sent [count(34)]
10:35:57 sent [count(40)]
10:35:57 sent [count(33)]
10:35:57 sent [count(37)]
10:35:57 sent [count(36)]
10:35:57 sent [count(41)]
10:35:57 sent [count(43)]
10:35:57 sent [count(42)]
10:35:57 sent [count(39)]
10:35:57 sent [count(46)]
10:35:57 sent [count(38)]
10:35:57 sent [count(44)]
10:35:57 sent [count(48)]
10:35:57 sent [count(45)]
10:35:57 sent [count(49)]
10:35:57 sent [count(50)]
10:35:57 sent [count(51)]
10:35:57 sent [count(52)]
10:35:57 sent [count(47)]
10:35:57 sent [count(53)]
10:35:57 sent [count(54)]
10:35:57 sent [count(55)]
10:35:57 sent [count(57)]
10:35:57 sent [count(60)]
10:35:57 sent [count(56)]
10:35:57 sent [count(61)]
10:35:57 sent [count(62)]
10:35:57 sent [count(72)]
10:35:57 sent [count(66)]
10:35:57 sent [count(69)]
10:35:57 sent [count(71)]
10:35:57 sent [count(58)]
10:35:57 sent [count(64)]
10:35:57 sent [count(68)]
10:35:57 sent [count(73)]
10:35:57 sent [count(75)]
10:35:57 sent [count(70)]
10:35:57 sent [count(59)]
10:35:57 sent [count(65)]
10:35:57 sent [count(67)]
10:35:57 sent [count(74)]
10:35:57 sent [count(63)]
10:35:57 sent [count(76)]
10:35:57 sent [count(78)]
10:35:57 sent [count(77)]
10:35:57 sent [count(79)]
10:35:57 sent [count(80)]
10:35:57 sent [count(82)]
10:35:57 sent [count(84)]
10:35:57 sent [count(81)]
10:35:57 sent [count(87)]
10:35:57 sent [count(85)]
10:35:57 sent [count(86)]
10:35:57 sent [count(83)]
10:35:57 sent [count(91)]
10:35:57 sent [count(90)]
10:35:57 sent [count(95)]
10:35:57 sent [count(93)]
10:35:57 sent [count(89)]
10:35:57 sent [count(99)]
10:35:57 sent [count(98)]
10:35:57 sent [count(88)]
10:35:57 sent [count(94)]
10:35:57 sent [count(97)]
10:35:57 sent [count(102)]
10:35:57 sent [count(101)]
10:35:57 sent [count(100)]
10:35:57 sent [count(92)]
10:35:57 sent [count(96)]
10:35:57 sent [count(104)]
10:35:57 sent [count(109)]
10:35:57 sent [count(103)]
10:35:57 sent [count(106)]
10:35:57 sent [count(105)]
10:35:57 started [count(131)] [input={"file": "pkg/env/env.go"}]
10:35:57 sent [count(108)]
10:35:57 sent [count(111)]
10:35:57 sent [count(113)]
10:35:57 sent [count(114)]
10:35:57 sent [count(115)]
10:35:57 sent [count(112)]
10:35:57 sent [count(120)]
10:35:57 sent [count(118)]
10:35:57 sent [count(117)]
10:35:57 sent [count(121)]
10:35:57 sent [count(124)]
10:35:57 sent [count(116)]
10:35:57 sent [count(123)]
content [3] content | 65 pkg/sdkserver/middleware.go
content [3] content |
10:35:57 sent [count(125)]
10:35:57 sent [count(119)]
10:35:57 sent [count(129)]
10:35:57 sent [count(128)]
10:35:57 sent [count(126)]
10:35:57 sent [count(122)]
10:35:57 sent [count(130)]
10:35:57 sent [count(127)]
10:35:57 sent [count(131)]
10:35:57 ended [count(9)] [output=5 pkg/repos/git/log.go]
10:35:57 ended [count(16)] [output=23 pkg/daemon/daemon.go]
10:35:57 ended [count(6)] [output=33 pkg/repos/runtimes/default.go]
10:35:57 ended [count(13)] [output=5 pkg/debugcmd/log.go]
10:35:57 ended [count(24)] [output=151 pkg/loader/github/github.go]
10:35:57 ended [count(21)] [output=814 pkg/builtin/builtin.go]
10:35:57 ended [count(10)] [output=114 pkg/repos/download/extract.go]
10:35:57 ended [count(14)] [output=73 pkg/input/input.go]
content [9] content | 5 pkg/repos/git/log.go
content [9] content |
content [16] content | 23 pkg/daemon/daemon.go
content [16] content |
content [6] content | 33 pkg/repos/runtimes/default.go
content [6] content |
content [13] content | 5 pkg/debugcmd/log.go
content [13] content |
content [24] content | 151 pkg/loader/github/github.go
content [24] content |
content [21] content | 814 pkg/builtin/builtin.go
content [21] content |
content [10] content | 114 pkg/repos/download/extract.go
content [10] content |
content [14] content | 73 pkg/input/input.go
content [14] content |
content [4] content | 77 pkg/types/tool_test.go
content [4] content |
10:35:57 ended [count(3)] [output=65 pkg/sdkserver/middleware.go]
content [5] content | 50 pkg/repos/git/cmd.go
content [5] content |
10:35:57 ended [count(4)] [output=77 pkg/types/tool_test.go]
10:35:57 ended [count(12)] [output=270 pkg/loader/loader_test.go]
10:35:57 ended [count(11)] [output=34 pkg/repos/git/git_test.go]
10:35:57 ended [count(26)] [output=7 pkg/repos/runtimes/golang/testdata/main.go]
10:35:57 ended [count(15)] [output=969 pkg/runner/runner.go]
content [12] content | 270 pkg/loader/loader_test.go
content [12] content |
content [11] content | 34 pkg/repos/git/git_test.go
content [11] content |
content [26] content | 7 pkg/repos/runtimes/golang/testdata/main.go
content [26] content |
content [15] content | 969 pkg/runner/runner.go
content [15] content |
10:35:57 ended [count(5)] [output=50 pkg/repos/git/cmd.go]
10:35:57 ended [count(22)] [output=510 pkg/engine/openapi.go]
10:35:57 ended [count(19)] [output=9 static/fs.go]
10:35:57 ended [count(23)] [output=5 pkg/repos/runtimes/python/log.go]
10:35:57 ended [count(17)] [output=235 pkg/sdkserver/types.go]
10:35:57 ended [count(60)] [output=22 pkg/cli/main.go]
10:35:57 ended [count(39)] [output=17 pkg/assemble/assemble.go]
10:35:57 ended [count(28)] [output=61 pkg/cli/credential_show.go]
10:35:57 ended [count(42)] [output=219 pkg/engine/daemon.go]
10:35:57 ended [count(50)] [output=56 pkg/version/version.go]
10:35:57 ended [count(51)] [output=229 pkg/gptscript/gptscript.go]
10:35:57 ended [count(47)] [output=108 pkg/prompt/prompt.go]
10:35:57 ended [count(44)] [output=28 pkg/server/server.go]
10:35:57 ended [count(58)] [output=12 pkg/types/prompt.go]
10:35:57 ended [count(43)] [output=154 pkg/repos/runtimes/golang/golang.go]
10:35:57 ended [count(61)] [output=5 pkg/loader/log.go]
10:35:57 ended [count(56)] [output=205 pkg/mvl/log.go]
10:35:57 ended [count(38)] [output=72 pkg/chat/readline.go]
10:35:57 ended [count(62)] [output=82 pkg/llm/registry.go]
10:35:57 ended [count(46)] [output=39 pkg/repos/get_test.go]
10:35:57 ended [count(80)] [output=72 pkg/runner/output.go]
10:35:57 ended [count(52)] [output=17 pkg/counter/counter.go]
10:35:57 ended [count(25)] [output=222 pkg/repos/get.go]
10:35:57 ended [count(54)] [output=36 pkg/types/toolname_test.go]
10:35:57 ended [count(49)] [output=56 pkg/repos/git/git.go]
10:35:57 ended [count(75)] [output=51 pkg/cli/fmt.go]
10:35:57 ended [count(53)] [output=171 pkg/sdkserver/run.go]
10:35:57 ended [count(34)] [output=354 pkg/loader/openapi.go]
10:35:57 ended [count(73)] [output=52 pkg/repos/runtimes/node/node_test.go]
10:35:57 ended [count(66)] [output=201 pkg/config/cliconfig.go]
10:35:57 ended [count(78)] [output=141 pkg/credentials/store.go]
10:35:57 ended [count(70)] [output=282 pkg/engine/cmd.go]
10:35:57 ended [count(68)] [output=25 pkg/builtin/defaults.go]
10:35:57 ended [count(59)] [output=46 pkg/loader/github/github_test.go]
10:35:57 ended [count(65)] [output=19 pkg/system/bin.go]
10:35:57 ended [count(36)] [output=153 pkg/types/credential_test.go]
10:35:57 ended [count(82)] [output=5 pkg/env/log.go]
10:35:57 ended [count(48)] [output=34 pkg/hash/sha256.go]
10:35:57 ended [count(45)] [output=5 pkg/monitor/log.go]
10:35:57 ended [count(81)] [output=47 pkg/cli/parse.go]
10:35:57 ended [count(40)] [output=261 pkg/sdkserver/routes.go]
10:35:57 ended [count(57)] [output=11 main.go]
10:35:57 ended [count(63)] [output=114 pkg/debugcmd/debug.go]
10:35:57 ended [count(83)] [output=31 pkg/embedded/embed.go]
10:35:57 ended [count(31)] [output=5 pkg/repos/runtimes/node/log.go]
10:35:57 ended [count(84)] [output=82 pkg/types/toolstring.go]
10:35:57 ended [count(33)] [output=107 pkg/engine/http.go]
10:35:57 ended [count(20)] [output=170 pkg/tests/tester/runner.go]
10:35:57 ended [count(111)] [output=5 pkg/engine/log.go]
10:35:57 ended [count(77)] [output=191 pkg/loader/url.go]
10:35:57 ended [count(79)] [output=564 pkg/openai/client.go]
10:35:57 ended [count(37)] [output=5 pkg/input/log.go]
10:35:57 ended [count(113)] [output=99 pkg/credentials/credential.go]
10:35:57 ended [count(35)] [output=57 pkg/runner/parallel.go]
10:35:57 ended [count(92)] [output=926 pkg/tests/runner_test.go]
10:35:57 ended [count(86)] [output=91 pkg/sdkserver/confirm.go]
10:35:57 ended [count(114)] [output=164 pkg/monitor/fd.go]
10:35:57 ended [count(69)] [output=77 pkg/prompt/server.go]
10:35:57 ended [count(93)] [output=23 pkg/types/jsonschema.go]
10:35:57 ended [count(76)] [output=98 pkg/sdkserver/monitor.go]
10:35:57 ended [count(112)] [output=88 pkg/cli/eval.go]
content [7] content | 241 pkg/parser/parser_test.go
content [7] content |
10:35:57 ended [count(67)] [output=14 pkg/hash/seed.go]
content [22] content | 510 pkg/engine/openapi.go
content [22] content |
content [19] content | 9 static/fs.go
content [19] content |
content [23] content | 5 pkg/repos/runtimes/python/log.go
content [23] content |
content [17] content | 235 pkg/sdkserver/types.go
content [17] content |
content [60] content | 22 pkg/cli/main.go
content [60] content |
content [39] content | 17 pkg/assemble/assemble.go
content [39] content |
content [28] content | 61 pkg/cli/credential_show.go
content [28] content |
content [42] content | 219 pkg/engine/daemon.go
content [42] content |
content [50] content | 56 pkg/version/version.go
content [50] content |
content [51] content | 229 pkg/gptscript/gptscript.go
content [51] content |
content [47] content | 108 pkg/prompt/prompt.go
content [47] content |
content [44] content | 28 pkg/server/server.go
content [44] content |
content [58] content | 12 pkg/types/prompt.go
content [58] content |
content [43] content | 154 pkg/repos/runtimes/golang/golang.go
content [43] content |
content [61] content | 5 pkg/loader/log.go
content [61] content |
content [56] content | 205 pkg/mvl/log.go
content [56] content |
content [38] content | 72 pkg/chat/readline.go
content [38] content |
content [62] content | 82 pkg/llm/registry.go
content [62] content |
content [46] content | 39 pkg/repos/get_test.go
content [46] content |
content [80] content | 72 pkg/runner/output.go
content [80] content |
content [52] content | 17 pkg/counter/counter.go
content [52] content |
content [25] content | 222 pkg/repos/get.go
content [25] content |
content [54] content | 36 pkg/types/toolname_test.go
content [54] content |
content [49] content | 56 pkg/repos/git/git.go
content [49] content |
content [75] content | 51 pkg/cli/fmt.go
content [75] content |
content [53] content | 171 pkg/sdkserver/run.go
content [53] content |
content [34] content | 354 pkg/loader/openapi.go
content [34] content |
content [73] content | 52 pkg/repos/runtimes/node/node_test.go
content [73] content |
content [66] content | 201 pkg/config/cliconfig.go
content [66] content |
content [78] content | 141 pkg/credentials/store.go
content [78] content |
content [70] content | 282 pkg/engine/cmd.go
content [70] content |
content [68] content | 25 pkg/builtin/defaults.go
content [68] content |
content [59] content | 46 pkg/loader/github/github_test.go
content [59] content |
content [65] content | 19 pkg/system/bin.go
content [65] content |
content [36] content | 153 pkg/types/credential_test.go
content [36] content |
content [82] content | 5 pkg/env/log.go
content [82] content |
content [48] content | 34 pkg/hash/sha256.go
content [48] content |
content [45] content | 5 pkg/monitor/log.go
content [45] content |
content [81] content | 47 pkg/cli/parse.go
content [81] content |
content [40] content | 261 pkg/sdkserver/routes.go
content [40] content |
content [57] content | 11 main.go
content [57] content |
content [63] content | 114 pkg/debugcmd/debug.go
content [63] content |
content [83] content | 31 pkg/embedded/embed.go
content [83] content |
content [31] content | 5 pkg/repos/runtimes/node/log.go
content [31] content |
content [84] content | 82 pkg/types/toolstring.go
content [84] content |
content [33] content | 107 pkg/engine/http.go
content [33] content |
content [20] content | 170 pkg/tests/tester/runner.go
content [20] content |
content [111] content | 5 pkg/engine/log.go
content [111] content |
content [77] content | 191 pkg/loader/url.go
content [77] content |
content [79] content | 564 pkg/openai/client.go
content [79] content |
content [37] content | 5 pkg/input/log.go
content [37] content |
content [113] content | 99 pkg/credentials/credential.go
content [113] content |
content [35] content | 57 pkg/runner/parallel.go
content [35] content |
content [92] content | 926 pkg/tests/runner_test.go
content [92] content |
content [86] content | 91 pkg/sdkserver/confirm.go
content [86] content |
content [114] content | 164 pkg/monitor/fd.go
content [114] content |
content [69] content | 77 pkg/prompt/server.go
content [69] content |
content [93] content | 23 pkg/types/jsonschema.go
content [93] content |
content [76] content | 98 pkg/sdkserver/monitor.go
content [76] content |
content [112] content | 88 pkg/cli/eval.go
content [112] content |
content [67] content | 14 pkg/hash/seed.go
content [67] content |
10:35:57 ended [count(7)] [output=241 pkg/parser/parser_test.go]
10:35:57 ended [count(115)] [output=30 pkg/runner/monitor.go]
10:35:57 ended [count(64)] [output=161 pkg/repos/runtimes/node/node.go]
10:35:57 ended [count(105)] [output=200 pkg/repos/runtimes/python/generate/generate.go]
10:35:57 ended [count(41)] [output=40 pkg/repos/runtimes/golang/golang_test.go]
10:35:57 ended [count(55)] [output=5 pkg/prompt/log.go]
10:35:57 ended [count(123)] [output=50 pkg/openai/client_test.go]
10:35:57 ended [count(74)] [output=449 pkg/monitor/display.go]
10:35:57 ended [count(87)] [output=450 pkg/parser/parser.go]
10:35:57 ended [count(98)] [output=223 pkg/repos/runtimes/python/python.go]
10:35:57 ended [count(107)] [output=134 pkg/types/completion.go]
10:35:57 ended [count(85)] [output=97 pkg/chat/chat.go]
10:35:57 ended [count(88)] [output=5 pkg/repos/runtimes/golang/log.go]
10:35:57 ended [count(106)] [output=41 pkg/prompt/credential.go]
10:35:57 ended [count(101)] [output=514 pkg/loader/loader.go]
10:35:57 ended [count(72)] [output=25 pkg/system/currentbin.go]
10:35:57 ended [count(97)] [output=255 pkg/engine/openapi_test.go]
10:35:57 ended [count(110)] [output=490 pkg/cli/gptscript.go]
10:35:57 ended [count(100)] [output=54 pkg/types/set.go]
10:35:57 ended [count(18)] [output=59 pkg/context/context.go]
10:35:57 ended [count(89)] [output=116 pkg/sdkserver/prompt.go]
10:35:57 ended [count(121)] [output=33 pkg/builtin/builtin_test.go]
10:35:57 ended [count(90)] [output=184 pkg/tests/smoke/smoke_test.go]
10:35:57 ended [count(71)] [output=19 pkg/credentials/noop.go]
10:35:57 ended [count(130)] [output=128 pkg/tests/judge/judge.go]
10:35:57 ended [count(99)] [output=14 internal/fs.go]
10:35:57 ended [count(124)] [output=55 pkg/runner/credentials.go]
10:35:57 ended [count(91)] [output=131 pkg/cache/cache.go]
content [8] content | 48 tools/gendocs/main.go
content [8] content |
10:35:57 ended [count(32)] [output=135 pkg/cli/credential.go]
content [115] content | 30 pkg/runner/monitor.go
content [115] content |
content [64] content | 161 pkg/repos/runtimes/node/node.go
content [64] content |
content [105] content | 200 pkg/repos/runtimes/python/generate/generate.go
content [105] content |
content [41] content | 40 pkg/repos/runtimes/golang/golang_test.go
content [41] content |
content [55] content | 5 pkg/prompt/log.go
content [55] content |
content [123] content | 50 pkg/openai/client_test.go
content [123] content |
content [74] content | 449 pkg/monitor/display.go
content [74] content |
content [87] content | 450 pkg/parser/parser.go
content [87] content |
content [98] content | 223 pkg/repos/runtimes/python/python.go
content [98] content |
content [107] content | 134 pkg/types/completion.go
content [107] content |
content [85] content | 97 pkg/chat/chat.go
content [85] content |
content [88] content | 5 pkg/repos/runtimes/golang/log.go
content [88] content |
content [106] content | 41 pkg/prompt/credential.go
content [106] content |
content [101] content | 514 pkg/loader/loader.go
content [101] content |
content [72] content | 25 pkg/system/currentbin.go
content [72] content |
content [97] content | 255 pkg/engine/openapi_test.go
content [97] content |
content [110] content | 490 pkg/cli/gptscript.go
content [110] content |
content [100] content | 54 pkg/types/set.go
content [100] content |
content [18] content | 59 pkg/context/context.go
content [18] content |
content [89] content | 116 pkg/sdkserver/prompt.go
content [89] content |
content [121] content | 33 pkg/builtin/builtin_test.go
content [121] content |
content [90] content | 184 pkg/tests/smoke/smoke_test.go
content [90] content |
content [71] content | 19 pkg/credentials/noop.go
content [71] content |
content [130] content | 128 pkg/tests/judge/judge.go
content [130] content |
content [99] content | 14 internal/fs.go
content [99] content |
content [124] content | 55 pkg/runner/credentials.go
content [124] content |
content [91] content | 131 pkg/cache/cache.go
content [91] content |
content [32] content | 135 pkg/cli/credential.go
content [32] content |
10:35:57 ended [count(8)] [output=48 tools/gendocs/main.go]
10:35:57 ended [count(102)] [output=34 pkg/runner/input.go]
10:35:57 ended [count(116)] [output=17 pkg/credentials/util.go]
10:35:57 ended [count(117)] [output=102 pkg/credentials/helper.go]
10:35:57 ended [count(103)] [output=5 pkg/types/log.go]
10:35:57 ended [count(104)] [output=5 pkg/repos/log.go]
10:35:57 ended [count(29)] [output=5 pkg/builtin/log.go]
10:35:57 ended [count(95)] [output=6 pkg/loader/vcs/init.go]
content [27] content | 50 pkg/runner/runtimemanager.go
content [27] content |
10:35:57 ended [count(30)] [output=97 pkg/types/toolname.go]
content [102] content | 34 pkg/runner/input.go
content [102] content |
content [116] content | 17 pkg/credentials/util.go
content [116] content |
content [117] content | 102 pkg/credentials/helper.go
content [117] content |
content [103] content | 5 pkg/types/log.go
content [103] content |
content [104] content | 5 pkg/repos/log.go
content [104] content |
content [29] content | 5 pkg/builtin/log.go
content [29] content |
content [95] content | 6 pkg/loader/vcs/init.go
content [95] content |
content [30] content | 97 pkg/types/toolname.go
content [30] content |
10:35:57 ended [count(27)] [output=50 pkg/runner/runtimemanager.go]
content [94] content | 181 pkg/remote/remote.go
content [94] content |
content [96] content | 465 pkg/engine/engine.go
content [96] content |
10:35:57 ended [count(94)] [output=181 pkg/remote/remote.go]
10:35:57 ended [count(96)] [output=465 pkg/engine/engine.go]
10:35:57 ended [count(120)] [output=71 pkg/auth/auth.go]
10:35:57 ended [count(125)] [output=25 pkg/engine/print.go]
10:35:57 ended [count(128)] [output=5 pkg/runner/log.go]
10:35:57 ended [count(127)] [output=37 pkg/repos/runtimes/python/python_test.go]
10:35:57 ended [count(109)] [output=45 pkg/cli/credential_delete.go]
content [108] content | 782 pkg/types/tool.go
content [108] content |
10:35:57 ended [count(126)] [output=110 pkg/sdkserver/server.go]
content [120] content | 71 pkg/auth/auth.go
content [120] content |
content [125] content | 25 pkg/engine/print.go
content [125] content |
content [128] content | 5 pkg/runner/log.go
content [128] content |
content [127] content | 37 pkg/repos/runtimes/python/python_test.go
content [127] content |
content [109] content | 45 pkg/cli/credential_delete.go
content [109] content |
content [126] content | 110 pkg/sdkserver/server.go
content [126] content |
content [118] content | 22 pkg/tests/testdata/TestSysContext/test.go
content [118] content |
10:35:57 ended [count(108)] [output=782 pkg/types/tool.go]
10:35:57 ended [count(122)] [output=5 pkg/cli/log.go]
content [122] content | 5 pkg/cli/log.go
content [122] content |
10:35:57 ended [count(118)] [output=22 pkg/tests/testdata/TestSysContext/test.go]
10:35:57 ended [count(129)] [output=41 pkg/cli/sdk_server.go]
content [119] content | 71 pkg/system/prompt.go
content [119] content |
content [129] content | 41 pkg/cli/sdk_server.go
content [129] content |
10:35:57 ended [count(119)] [output=71 pkg/system/prompt.go]
content [131] content | 93 pkg/env/env.go
content [131] content |
10:35:57 ended [count(131)] [output=93 pkg/env/env.go]
10:35:57 continue [main]
10:35:57 sent [main]
content [1] content | Waiting for model response...10:35:57 usage [total=3747] [prompt=1418] [completion=2329]
2024/06/25 10:35:57 error, status code: 400, message: Invalid 'messages[3].tool_calls': array too long. Expected an array with maximum length 128, but got an array with length 129 instead.
Same script does not show this error when testing with claude-3-5-sonnet-20240620 from github.com/gptscript-ai/claude3-anthropic-provider
. In this case , I dont see the tool call to count
being made in parallel and the script itself takes a long time to finish executing ( about 5 minutes to execute).