suzzyzhen commited on
Commit
263f104
·
1 Parent(s): 412be61
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -40,22 +40,22 @@ final_answer = FinalAnswerTool()
40
  # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
41
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
42
 
43
- model = HfApiModel(
44
- max_tokens=2096,
45
- temperature=0.5,
46
- model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
47
- # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud',
48
- custom_role_conversions=None,
49
- )
50
 
51
 
52
- # OPENROUTER_API_KEY = os.environ.get("OPENROUTER_API_KEY")
53
 
54
- # model = LiteLLMModel(
55
- # model_id="openrouter/qwen/qwen3-next-80b-a3b-instruct:free",
56
- # # api_base="https://openrouter.ai/api/v1",
57
- # api_key=OPENROUTER_API_KEY,
58
- # )
59
 
60
  # Import tool from Hub
61
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
 
40
  # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
41
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
42
 
43
+ # model = HfApiModel(
44
+ # max_tokens=2096,
45
+ # temperature=0.5,
46
+ # model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may be overloaded
47
+ # # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud',
48
+ # custom_role_conversions=None,
49
+ # )
50
 
51
 
52
+ API_KEY = os.environ.get("GO_API")
53
 
54
+ model = LiteLLMModel(
55
+ model_id="gemini/gemini-2.5-flash",
56
+ # api_base="https://openrouter.ai/api/v1",
57
+ api_key=API_KEY,
58
+ )
59
 
60
  # Import tool from Hub
61
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)