SakanaAI / AI-Scientist

The AI Scientist: Towards Fully Automated Open-Ended Scientific Discovery 🧑‍🔬
Apache License 2.0
7.4k stars 983 forks source link

Can we add azure? #48

Open dimentox opened 3 weeks ago

dimentox commented 3 weeks ago

Please consider adding azure.. i know lite llm has it... and its in the openai lib.

robotdad commented 3 weeks ago

For the readme example of a paper review you can get Azure running with something like this.

openai.api_type = "azure"
openai.azure_endpoint = os.getenv("AZURE_OPENAI_ENDPOINT")
openai.api_version = "2024-06-01" 
openai.api_key = os.getenv("AZURE_OPENAI_API_KEY")

My model deployments did not match the model names used here so I had to add them to the list in llm.py. Personally, I just name them the same as the model which seems to be the practice in most environments I've been in. I You could probably update launch_scientist.py to have an Azure option based off of the gpt-4o-2024-05-13 section with the additional Azure config.

dimentox commented 3 weeks ago

The one thing i did not read.

On Tue, Aug 20, 2024 at 7:52 PM Marc Goodner @.***> wrote:

For the readme example of a paper review you can get Azure running with something like this.

openai.api_type = "azure" openai.azure_endpoint = os.getenv("AZURE_OPENAI_ENDPOINT") openai.api_version = "2024-06-01" openai.api_key = os.getenv("AZURE_OPENAI_API_KEY")

My model deployments did not match the model names used here so I had to add them to the list in llm.py. Personally, I just name them the same as the model which seems to be the practice in most environments I've been in. I You could probably update launch_scientist.py to have an Azure option based off of the gpt-4o-2024-05-13 section with the additional Azure config.

— Reply to this email directly, view it on GitHub https://github.com/SakanaAI/AI-Scientist/issues/48#issuecomment-2300005582, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGRJPGSJ4Z6GLBIEG2NMD3ZSPQFFAVCNFSM6AAAAABMYI3WZ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBQGAYDKNJYGI . You are receiving this because you authored the thread.Message ID: @.***>