Skip to content

Credentials - When there are parallel tool calls made , there are texts relating to tool calls that gets displayed after the prompt (when waiting for user input) which is confusing.  #256

Closed
@sangee2004

Description

@sangee2004

gptscript version v0.0.0-dev-bc620f0e-dirty

Steps to reproduce the problem:

  1. Run examples/story-book/story-book.gpt which makes multiple parallel tool calls to image-generation tool.

  2. Notice that there are texts relating to tool calls that gets displayed after the prompt "?token" which is confusing.

gptscript --disable-cache examples/story-book/story-book.gpt --story "My trip to Japan" --pages 4

13:04:29 sent     [story-illustrator(11)]
13:04:29 sent     [story-illustrator(9)]
13:04:29 sent     [story-illustrator(8)]
         content  [8] content | Waiting for model response...
13:04:29 sent     [story-illustrator(10)]
         content  [8] content | tool call image-generation -> {"prompt":"In Kyoto, Jamie wanders through ancient streets li ...
13:04:32 started  [credential: github.com/gptscript-ai/image-generation/credential]
13:04:32 sent     [credential: github.com/gptscript-ai/image-generation/credential]
Please enter your OpenAI API token.
? token          content  [8] content | tool call image-generation -> {"prompt":"In Kyoto, Jamie wanders through ancient streets li ...
         content  [8] content | tool call image-generation -> {"prompt":"In Kyoto, Jamie wanders through ancient streets li ...         content  [11] content | tool call image-generation -> {"prompt": "Jamie in Tokyo, surrounded by skyscrapers and arc ...
         content  [10] content | tool call image-generation -> {"prompt":"Jamie in the heart of the countryside, climbing mi ...
         content  [9] content | tool call image-generation -> {"prompt":"Jamie at the Sakura festival in a village, surroun ...
         content  [9] content | tool call image-generation -> {"prompt":"Jamie at the Sakura festival in a village, surroun ...
***************************************************
13:06:47 ended    [credential: github.com/gptscript-ai/image-generation/credential]
13:06:47 started  [story-illustrator(11)->image-generation(13)] [input={"prompt": "Jamie in Tokyo, surrounded by skyscrapers and arcade games. In a pointilism cartoon children's book style with no text in it", "quality": "hd"}]

Expected Behavior:
Prevent the text relating to tool calls to be displayed after the prompt when waiting for users input.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions