You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just fresh installed gptcmd and gptcmd-anthropic. The config file only has provider, key, and model.
I get this:
(venv) [ivan@radagast claude]$ gptcmd
Traceback (most recent call last):
File "/home/ivan/workspace/claude/venv/bin/gptcmd", line 8, in
sys.exit(main())
~~~~^^
File "/home/ivan/workspace/claude/venv/lib/python3.13/site-packages/gptcmd/cli.py", line 1273, in main
shell = Gptcmd(config=config)
File "/home/ivan/workspace/claude/venv/lib/python3.13/site-packages/gptcmd/cli.py", line 73, in init
self.config = config or ConfigManager.from_toml()
~~~~~~~~~~~~~~~~~~~~~~~^^
File "/home/ivan/workspace/claude/venv/lib/python3.13/site-packages/gptcmd/config.py", line 136, in from_toml
return cls(tomllib.load(fin))
File "/home/ivan/workspace/claude/venv/lib/python3.13/site-packages/gptcmd/config.py", line 81, in init
self.accounts = self._configure_accounts(
~~~~~~~~~~~~~~~~~~~~~~~~^
self.conf["accounts"], providers
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/home/ivan/workspace/claude/venv/lib/python3.13/site-packages/gptcmd/config.py", line 153, in _configure_accounts
res[name] = Account(name=name, provider=provider.from_config(conf))
~~~~~~~~~~~~~~~~~~~~^^^^^^
File "/home/ivan/workspace/claude/venv/lib/python3.13/site-packages/gptcmd_anthropic/anthropic.py", line 57, in from_config
return cls(client, model=model)
File "/home/ivan/workspace/claude/venv/lib/python3.13/site-packages/gptcmd_anthropic/anthropic.py", line 37, in init
self.update_api_params(self.class.DEFAULT_API_PARAMS)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ivan/workspace/claude/venv/lib/python3.13/site-packages/gptcmd/llm/init.py", line 155, in update_api_params
validated_params = self.validate_api_params(new_params)
File "/home/ivan/workspace/claude/venv/lib/python3.13/site-packages/gptcmd_anthropic/anthropic.py", line 254, in validate_api_params
self._anthropic.beta.prompt_caching.messages.create
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Beta' object has no attribute 'prompt_caching'
What am I missing here?
The text was updated successfully, but these errors were encountered:
I just fresh installed gptcmd and gptcmd-anthropic. The config file only has provider, key, and model.
I get this:
(venv) [ivan@radagast claude]$ gptcmd
Traceback (most recent call last):
File "/home/ivan/workspace/claude/venv/bin/gptcmd", line 8, in
sys.exit(main())
~~~~^^
File "/home/ivan/workspace/claude/venv/lib/python3.13/site-packages/gptcmd/cli.py", line 1273, in main
shell = Gptcmd(config=config)
File "/home/ivan/workspace/claude/venv/lib/python3.13/site-packages/gptcmd/cli.py", line 73, in init
self.config = config or ConfigManager.from_toml()
~~~~~~~~~~~~~~~~~~~~~~~^^
File "/home/ivan/workspace/claude/venv/lib/python3.13/site-packages/gptcmd/config.py", line 136, in from_toml
return cls(tomllib.load(fin))
File "/home/ivan/workspace/claude/venv/lib/python3.13/site-packages/gptcmd/config.py", line 81, in init
self.accounts = self._configure_accounts(
~~~~~~~~~~~~~~~~~~~~~~~~^
self.conf["accounts"], providers
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/home/ivan/workspace/claude/venv/lib/python3.13/site-packages/gptcmd/config.py", line 153, in _configure_accounts
res[name] = Account(name=name, provider=provider.from_config(conf))
~~~~~~~~~~~~~~~~~~~~^^^^^^
File "/home/ivan/workspace/claude/venv/lib/python3.13/site-packages/gptcmd_anthropic/anthropic.py", line 57, in from_config
return cls(client, model=model)
File "/home/ivan/workspace/claude/venv/lib/python3.13/site-packages/gptcmd_anthropic/anthropic.py", line 37, in init
self.update_api_params(self.class.DEFAULT_API_PARAMS)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ivan/workspace/claude/venv/lib/python3.13/site-packages/gptcmd/llm/init.py", line 155, in update_api_params
validated_params = self.validate_api_params(new_params)
File "/home/ivan/workspace/claude/venv/lib/python3.13/site-packages/gptcmd_anthropic/anthropic.py", line 254, in validate_api_params
self._anthropic.beta.prompt_caching.messages.create
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Beta' object has no attribute 'prompt_caching'
What am I missing here?
The text was updated successfully, but these errors were encountered: