mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1344] Server: Multiple API key(llamacpp format) will seen as one long key #541
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#541
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ed-hch on GitHub (Oct 7, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1344
Launch command: .\START-HERE.bat --no-browser --host 0.0.0.0 --api-key sk-<<48char key1>>,sk-<<48char key2>>
The result api key will be joining 2 keys together. "sk-<<48char key1>>,sk-<<48char key2>>"
This imply a, the server doesn't check the key format, I'm not sure is it by design to support various key format
b, it can't parse comma-separated list of keys.
@Niko1221 commented on GitHub (Oct 8, 2026):
Fixed in 0.1.41:
--api-key,STRATA_API_KEYand"api_key"take llama.cpp's form, several keys separated by commas (key1,key2; spaces around a key are dropped), and a request passes with any one of them. A key that contains a comma can be given as a list in the config,"api_key": ["a,b", "c"]. The keys are compared in constant time, all of them, whatever the outcome.