Skip to content
Discussion options

You must be logged in to vote
The safe path is to validate API mode with the model-list endpoint first.

In this project, the "Get Models" and "Test API" actions are designed around the OpenAI-compatible `/models` endpoint. They should verify the API key and base URL without sending a chat/completion request, so they should not consume translation quota.

You can provide defaults through environment variables:

```powershell
$env:DEEPSEEK_API_KEY="your API key"
$env:DEEPSEEK_API_BASE="https://api.deepseek.com"
$env:DEEPSEEK_MODEL="deepseek-chat"
python main.py

The UI values can still override those defaults during normal use.

API keys must not be written into history, logs, or export files. They should only be used fo…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rayfon99999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants