Skip to content

Chat - URLs in chat responses get messed up . They have "(MISSING)" texts as part of the URL". #297

@sangee2004

Description

@sangee2004

gptscript version v0.0.0-dev-cb54f3b0-dirty

Steps to reproduce the problem:

  1. Chat with following gptscipt
Tools: github.com/gptscript-ai/dalle-image-generation
chat: true

This is chatbot
  1. Notice that the URLs in chat responses get messed up with have "(MISSING)" texts as part of the URL - ![Cow Grazing in the Fields](https://oaidalleapiprodscus.blob.core.windows.net/private/org-UZ21HIS1j93qUiZVWBOGePHu/user-nfhF7kaasrYgX69n1He52KF9/img-qY6ORw3Xjtc3pPxiUGfBFPsz.png?st=2024-04-29T15%!A(MISSING)47%!A(MISSING)29Z&se=2024-04-29T17%!A(MISSING)47%!A(MISSING)29Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-04-28T19%!A(MISSING)25%!A(MISSING)03Z&ske=2024-04-29T19%!A(MISSING)25%!A(MISSING)03Z&sks=b&skv=2021-08-06&sig=mkMyjDGZIm0K2fjxLopZA/G/fvFyRjEk3AL/YxVb5OU%!D(MISSING))
 gptscript --disable-cache testimage.gpt
09:46:41 started  [main]
09:46:41 sent     [main]
         content  [1] content | Waiting for model response...         content  [1] content | It seems like you haven't provided a specific question or task yet. How can I assist you today?
09:46:43 ended    [main] [output=It seems like you haven't provided a specific question or task yet. How can I assist you today?]
< It seems like you haven't provided a specific question or task yet. How can I assist you today?
testimage.gpt> Generate a image for a cow grazing the fields
09:47:11 continue [main]
09:47:11 sent     [main]
         content  [2] content | Waiting for model response...
         content  [2] content | tool call dalleImageGeneration -> {"prompt":"cow grazing in the fields","number":"1"}
09:47:14 started  [credential: github.com/gptscript-ai/dalle-image-generation/credential]
09:47:14 sent     [credential: github.com/gptscript-ai/dalle-image-generation/credential]
09:47:14 ended    [credential: github.com/gptscript-ai/dalle-image-generation/credential] [output={}
]
09:47:14 Not saving empty credential for tool github.com/gptscript-ai/dalle-image-generation/credential
09:47:14 started  [image-generation(4)] [input={"prompt":"cow grazing in the fields","number":"1"}]
09:47:14 sent     [image-generation(4)]
09:47:29 started  [credential: github.com/gptscript-ai/dalle-image-generation/credential]
09:47:29 sent     [credential: github.com/gptscript-ai/dalle-image-generation/credential]
09:47:29 ended    [credential: github.com/gptscript-ai/dalle-image-generation/credential] [output={}
]
09:47:29 Not saving empty credential for tool github.com/gptscript-ai/dalle-image-generation/credential
09:47:29 ended    [image-generation(4)] [output=['https://oaidalleapiprodscus.blob.core.windows.net/private/org-UZ21HIS1j93qUiZVWBOGePHu/user-nfhF7kaasrYgX69n1He52KF9/img-qY6ORw3Xjtc3pPxiUGfBFPsz.png?st=2024-04-29T15%3A47%3A29Z&se=2024-04-29T17%3A47%3A29Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-04-28T19%3A25%3A03Z&ske=2024-04-29T19%3A25%3A03Z&sks=b&skv=2021-08-06&sig=mkMyjDGZIm0K2fjxLopZA/G/fvFyRjEk3AL/YxVb5OU%3D']
]
09:47:29 continue [main]
09:47:29 sent     [main]
         content  [2] content | Waiting for model response...         content  [2] content | Here is the image of a cow grazing in the fields:
         content  [2] content | 
         content  [2] content | ![Cow Grazing in the Fields](https://oaidalleapiprodscus.blob.core.windows.net/private/org-UZ21HIS1j93qUiZVWBOGePHu/user-nfhF7kaasrYgX69n1He52KF9/img-qY6ORw3Xjtc3pPxiUGfBFPsz.png?st=2024-04-29T15%3A47%3A29Z&se=2024-04-29T17%3A47%3A29Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-04-28T19%3A25%3A03Z&ske=2024-04-29T19%3A25%3A03Z&sks=b&skv=2021-08-06&sig=mkMyjDGZIm0K2fjxLopZA/G/fvFyRjEk3AL/YxVb5OU%3D)
         content  [2] content | 
         content  [2] content | Please let me know if there's anything else you'd like!
09:47:42 ended    [main] [output=Here is the image of a cow grazing in the fields:

![Cow Grazing in the Fields](https://oaidalleapiprodscus.blob.core.windows.net/private/org-UZ21HIS1j93qUiZVWBOGePHu/user-nfhF7kaasrYgX69n1He52KF9/img-qY6ORw3Xjtc3pPxiUGfBFPsz.png?st=2024-04-29T15%3A47%3A29Z&se=2024-04-29T17%3A47%3A29Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-04-28T19%3A25%3A03Z&ske=2024-04-29T19%3A25%3A03Z&sks=b&skv=2021-08-06&sig=mkMyjDGZIm0K2fjxLopZA/G/fvFyRjEk3AL/YxVb5OU%3D)

Please let me know if there's anything else you'd like!]
< Here is the image of a cow grazing in the fields:

![Cow Grazing in the Fields](https://oaidalleapiprodscus.blob.core.windows.net/private/org-UZ21HIS1j93qUiZVWBOGePHu/user-nfhF7kaasrYgX69n1He52KF9/img-qY6ORw3Xjtc3pPxiUGfBFPsz.png?st=2024-04-29T15%!A(MISSING)47%!A(MISSING)29Z&se=2024-04-29T17%!A(MISSING)47%!A(MISSING)29Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-04-28T19%!A(MISSING)25%!A(MISSING)03Z&ske=2024-04-29T19%!A(MISSING)25%!A(MISSING)03Z&sks=b&skv=2021-08-06&sig=mkMyjDGZIm0K2fjxLopZA/G/fvFyRjEk3AL/YxVb5OU%!D(MISSING))

Please let me know if there's anything else you'd like!

Metadata

Metadata

Assignees

No one assigned

    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