gptscript-ai / gptscript

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

Not able to execute script using anthropic provider . #512

Closed sangee2004 closed 2 months ago

sangee2004 commented 2 months ago

gptscript version v0.8.2+1b5e068f

Steps to reproduce the problem:

  1. Execute script using anthropic provider - gptscript --default-model 'claude-3-opus-20240229 from github.com/gptscript-ai/anthropic-provider' examples/bob.gpt

  2. When prompted for entering Anthropic API token, enter a valid token.

  3. Execution fails with - invalid character 'd' looking for beginning of value

gptscript --default-model 'claude-3-opus-20240229  from github.com/gptscript-ai/anthropic-provider'  examples/bob.gpt
14:16:39 WARNING: Changing the default model can have unknown behavior for existing tools. Use the model field per tool instead.
14:16:40 started  [main]
14:16:40 started  [provider: https://raw.githubusercontent.com/gptscript-ai/anthropic-provider/3b9b9365d469c4c702291f1764537ab5c226c2e0/tool.gpt:Anthropic Claude3 Model Provider]
14:16:40 started  [credential: github.com/gptscript-ai/claude3-anthropic-provider/credential]
14:16:40 sent     [credential: github.com/gptscript-ai/claude3-anthropic-provider/credential]
? Please enter your Anthropic API token. ************************************************************************************************************
14:17:21 ended    [credential: github.com/gptscript-ai/claude3-anthropic-provider/credential]
14:17:21 launched [Anthropic Claude3 Model Provider][https://raw.githubusercontent.com/gptscript-ai/anthropic-provider/3b9b9365d469c4c702291f1764537ab5c226c2e0/tool.gpt:Anthropic Claude3 Model Provider] port [10954] [/opt/homebrew/bin/gptscript sys.daemon /usr/bin/env python3 /Users/sangeethahariharan/Library/Caches/gptscript/repos/3b9b9365d469c4c702291f1764537ab5c226c2e0/tool.gpt/python3.12/main.py]
14:17:22 ended    [provider: https://raw.githubusercontent.com/gptscript-ai/anthropic-provider/3b9b9365d469c4c702291f1764537ab5c226c2e0/tool.gpt:Anthropic Claude3 Model Provider] [output=http://127.0.0.1:10954]
14:17:22 sent     [main]
2024/06/18 14:17:25 invalid character 'd' looking for beginning of value
sangee2004 commented 2 months ago

This issue is not seen when testing with gptscript version v0.8.3+019e26b4.