Skip to content

fix(translate): translate cli tool should read model name from env #7262

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

Conversation

charIeszhao
Copy link
Member

Summary

Translate CLI tool should correctly read LLM model name from .env or other environment variable configurations.

Previously, the const model is defined before loading dotenv configs, and thus the model name in env is always ignored.

Testing

Locally tested

Checklist

  • .changeset
  • unit tests
  • integration tests
  • necessary TSDoc comments

Copy link

github-actions bot commented Apr 9, 2025

COMPARE TO master

Total Size Diff 📈 +106 Bytes

Diff by File
Name Diff
.changeset/six-rivers-lick.md 📈 +77 Bytes
packages/translate/src/openai.ts 📈 +21 Bytes
packages/translate/src/sync.ts 📈 +8 Bytes

@charIeszhao charIeszhao enabled auto-merge (squash) April 11, 2025 00:15
@charIeszhao charIeszhao merged commit 23b6fe5 into master Apr 11, 2025
35 checks passed
@charIeszhao charIeszhao deleted the charles-log-11246-translate-cli-tool-should-read-llm-modal-name-from-env branch April 11, 2025 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants