siegelz / core-bench

MIT License
12 stars 4 forks source link

Change AutoGPT to support Azure backend #13

Open siegelz opened 1 week ago

siegelz commented 1 week ago

Currently, it only supports OpenAI.

siegelz commented 1 day ago

To start the agent: python main.py --experiment_name test --benchmark_level codeocean_hard --no_gpu --task_limit 1 --verbose --agent_script autogpt_develop.sh --keep_temp_envs

Then connect to the Docker image via: docker exec -it <container_name_or_id> /bin/bash

In .env, set USE_AZURE=True

Create azure.yaml in the forge/ directory (counter-intuitive)

Once in the Docker image, once the installations have finished, run

source $(poetry env info --path)/bin/activate
pip install duckduckgo_search httpx -U
pip install weave==0.50.5
. autogpt.sh run --ai-task "Tell me a joke" --ai-name $cap_subdir --skip-reprompt --continuous --log-level DEBUG --vlm "gpt-4o-2024-05-13" --fast_llm "gpt-4o-2024-05-13" --smart_llm "gpt-4o-2024-05-13" --openai_cost_budget 4
siegelz commented 1 day ago

Somehow, in the function get_api_access_kwargs() none of the variables are actually coming from azure.yaml. They are getting overwritten to be something else. I foudn changing azure_api_type in azure.yaml doesn't change the value of these keys.

On line 70 and 72 of _openai_base.py, the the settings are somehow not getting passed in.