Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support groq translator #399

Merged
merged 3 commits into from
May 10, 2024
Merged

feat: support groq translator #399

merged 3 commits into from
May 10, 2024

Conversation

umm233
Copy link
Contributor

@umm233 umm233 commented May 6, 2024

Support Groq to translate

@yihong0618
Copy link
Owner

can you add some info to README? @umm233

@@ -423,7 +433,7 @@ def main():
if not options.api_base:
raise ValueError("`api_base` must be provided when using `deployment_id`")
e.translate_model.set_deployment_id(options.deployment_id)
if options.model == "openai":
if options.model in ("openai", "groq"):
Copy link
Owner

Choose a reason for hiding this comment

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

this seems wrong it always raise error

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe you need run with --model_list arg.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because Groq needs to specify the model, I reuse the way of specifying the model.

@umm233
Copy link
Contributor Author

umm233 commented May 8, 2024

ok, I also want to adjust the format of readme to make it clearer.

@yihong0618
Copy link
Owner

copy that merging this first

@yihong0618 yihong0618 merged commit a9220ea into yihong0618:main May 10, 2024
2 checks 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