aideml icon indicating copy to clipboard operation
aideml copied to clipboard

How to use Anthropic Claude?

Open edangx100 opened this issue 1 year ago • 3 comments

I had performed the step of export the Anthropic key as stated in README file. But i am still prompted to use OpenAI key. How can i use Anthropic Claude and not OpenAI?

edangx100 avatar Apr 20 '24 11:04 edangx100

You can use the agent.code.model=... argument to use a Claude model for the coding step, however the execution feedback step currently only supports the OpenAI API (for function calling) so you will still need to provide an API key for that.

schmidtdominik avatar Apr 22 '24 15:04 schmidtdominik

I tried what you described (agent.code.model=..) at file 'config.yaml'. Both Claude and OpenAI keys are then exported as suggested from README.

But when i run (Aide), only OpenAI model is used for both (1) coding as well as (2) execution feedback. Claude model was not used.

How to use Claude model here?

edangx100 avatar Apr 28 '24 07:04 edangx100

I tried what you described (agent.code.model=..) at file 'config.yaml'. Both Claude and OpenAI keys are then exported as suggested from README.

But when i run (Aide), only OpenAI model is used for both (1) coding as well as (2) execution feedback. Claude model was not used.

How to use Claude model here?

can you plz show me what your config looks like.

  • config.yaml file
  • cfg object in run.py

crazydevlegend avatar May 15 '24 02:05 crazydevlegend

I just tried with models from Anthropic, as long as model names are correct, one should be able to run. You can double-check model names from here

dexhunter avatar Nov 04 '24 05:11 dexhunter