SakanaAI / AI-Scientist

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

Have anyone tried to replace the chatgpt model with DEEPSEEK? Do you know how to change this? #121

Open gao106 opened 2 months ago

gao106 commented 2 months ago

import openai from ai_scientist.perform_review import load_paper, perform_review

client = openai.OpenAI() model = "gpt-4o-2024-05-13"

Load paper from pdf file (raw text)

paper_txt = load_paper("report.pdf")

Get the review dict of the review

review = perform_review( paper_txt, model, client, num_reflections=5, num_fs_examples=1, num_reviews_ensemble=5, temperature=0.1, )

Inspect review results

review["Overall"] # overall score 1-10 review["Decision"] # ['Accept', 'Reject'] review["Weaknesses"] # List of weaknesses (str) How to repalce this code?

xprabhudayal commented 2 months ago

i cant find the report.pdf, does it gets generated by the MODEL?

gao106 commented 2 months ago

@xprabhudayal same issue