Skip to content

Conversation

@YongshiZhan
Copy link
Contributor

No description provided.

except Exception as e:
err_msgs.append(str(e))
""" else:
raise Exception(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you just commented the only raise here? We still want to raise exception if the llm with specified provider don't work.
Also the err_msgs looks no longer necessary.

# llm = get_llm(model=args.model, api_key=cfg["ANTHROPIC_API_KEY"], max_tokens=8192)
# llm = get_llm(args_d=args_dict)

api_key_cfg = ""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not quite against your initial idea of moving cfg into get_llm; (Just don't directly use args_dict)
These lines (155-164) do look irrelevant with other contents in main() and could be wrapped in get_llm.

@HejiaZ2023 HejiaZ2023 merged commit 03a4438 into stable-lab:main Feb 20, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants