Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
91086a8431 | ||
|
|
1157892001 |
@@ -37,7 +37,7 @@ function sent(e, what) {
|
|||||||
}
|
}
|
||||||
function explain(status, said, refused) {
|
function explain(status, said, refused) {
|
||||||
// Venice's own words for it ("violates the content policy of Venice.ai or the model provider") say no more than this
|
// Venice's own words for it ("violates the content policy of Venice.ai or the model provider") say no more than this
|
||||||
if (refused) return "Venice turned that down as against its content rules" + (/content polic/i.test(said) || !said ? "." : ` ("${said.replace(/[.\s]+$/, "")}").`);
|
if (refused) return "Venice turned that down as against its content rules" + (/content polic/i.test(said) || !said ? "." : ` (“${said.replace(/[.\s]+$/, "")}”).`);
|
||||||
if (status === 401 || status === 403) return "Venice didn't accept that key. Check it at venice.ai → Settings → API.";
|
if (status === 401 || status === 403) return "Venice didn't accept that key. Check it at venice.ai → Settings → API.";
|
||||||
if (status === 402) return "Venice says the key is out of credit.";
|
if (status === 402) return "Venice says the key is out of credit.";
|
||||||
if (status === 429) return "Venice is rate-limiting this key. Wait a moment and try again.";
|
if (status === 429) return "Venice is rate-limiting this key. Wait a moment and try again.";
|
||||||
|
|||||||
Reference in new issue
Block a user