feat(apisix): add Cloudron package
- Implements Apache APISIX packaging for Cloudron platform. - Includes Dockerfile, CloudronManifest.json, and start.sh. - Configured to use Cloudron's etcd addon. 🤖 Generated with Gemini CLI Co-Authored-By: Gemini <noreply@google.com>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"choices": [
|
||||
{
|
||||
"finish_reason": "stop",
|
||||
"index": 0,
|
||||
"message": { "content": "1 + 1 = 2.", "role": "assistant" }
|
||||
}
|
||||
],
|
||||
"created": 1723780938,
|
||||
"id": "chatcmpl-9wiSIg5LYrrpxwsr2PubSQnbtod1P",
|
||||
"model": "gpt-4o-2024-05-13",
|
||||
"object": "chat.completion",
|
||||
"system_fingerprint": "fp_abc28019ad",
|
||||
"usage": { "completion_tokens": 8, "prompt_tokens": 23, "total_tokens": 31 }
|
||||
}
|
@@ -0,0 +1,224 @@
|
||||
{
|
||||
"good_request": {
|
||||
"ResultList": [
|
||||
{
|
||||
"Toxicity": 0.02150000333786,
|
||||
"Labels": [
|
||||
{
|
||||
"Name": "PROFANITY",
|
||||
"Score": 0.00589999556541
|
||||
},
|
||||
{
|
||||
"Name": "HATE_SPEECH",
|
||||
"Score": 0.01729999780655
|
||||
},
|
||||
{
|
||||
"Name": "INSULT",
|
||||
"Score": 0.00519999861717
|
||||
},
|
||||
{
|
||||
"Name": "GRAPHIC",
|
||||
"Score": 0.00520000338554
|
||||
},
|
||||
{
|
||||
"Name": "HARASSMENT_OR_ABUSE",
|
||||
"Score": 0.00090001106262
|
||||
},
|
||||
{
|
||||
"Name": "SEXUAL",
|
||||
"Score": 0.00810000061989
|
||||
},
|
||||
{
|
||||
"Name": "VIOLENCE_OR_THREAT",
|
||||
"Score": 0.00570000290871
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"profane": {
|
||||
"ResultList": [
|
||||
{
|
||||
"Toxicity": 0.62150000333786,
|
||||
"Labels": [
|
||||
{
|
||||
"Name": "PROFANITY",
|
||||
"Score": 0.55589999556541
|
||||
},
|
||||
{
|
||||
"Name": "HATE_SPEECH",
|
||||
"Score": 0.21729999780655
|
||||
},
|
||||
{
|
||||
"Name": "INSULT",
|
||||
"Score": 0.25519999861717
|
||||
},
|
||||
{
|
||||
"Name": "GRAPHIC",
|
||||
"Score": 0.12520000338554
|
||||
},
|
||||
{
|
||||
"Name": "HARASSMENT_OR_ABUSE",
|
||||
"Score": 0.27090001106262
|
||||
},
|
||||
{
|
||||
"Name": "SEXUAL",
|
||||
"Score": 0.44810000061989
|
||||
},
|
||||
{
|
||||
"Name": "VIOLENCE_OR_THREAT",
|
||||
"Score": 0.27570000290871
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"profane_but_not_toxic": {
|
||||
"ResultList": [
|
||||
{
|
||||
"Toxicity": 0.12150000333786,
|
||||
"Labels": [
|
||||
{
|
||||
"Name": "PROFANITY",
|
||||
"Score": 0.55589999556541
|
||||
},
|
||||
{
|
||||
"Name": "HATE_SPEECH",
|
||||
"Score": 0.21729999780655
|
||||
},
|
||||
{
|
||||
"Name": "INSULT",
|
||||
"Score": 0.25519999861717
|
||||
},
|
||||
{
|
||||
"Name": "GRAPHIC",
|
||||
"Score": 0.12520000338554
|
||||
},
|
||||
{
|
||||
"Name": "HARASSMENT_OR_ABUSE",
|
||||
"Score": 0.27090001106262
|
||||
},
|
||||
{
|
||||
"Name": "SEXUAL",
|
||||
"Score": 0.44810000061989
|
||||
},
|
||||
{
|
||||
"Name": "VIOLENCE_OR_THREAT",
|
||||
"Score": 0.27570000290871
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"very_profane": {
|
||||
"ResultList": [
|
||||
{
|
||||
"Toxicity": 0.72150000333786,
|
||||
"Labels": [
|
||||
{
|
||||
"Name": "PROFANITY",
|
||||
"Score": 0.85589999556541
|
||||
},
|
||||
{
|
||||
"Name": "HATE_SPEECH",
|
||||
"Score": 0.21729999780655
|
||||
},
|
||||
{
|
||||
"Name": "INSULT",
|
||||
"Score": 0.25519999861717
|
||||
},
|
||||
{
|
||||
"Name": "GRAPHIC",
|
||||
"Score": 0.12520000338554
|
||||
},
|
||||
{
|
||||
"Name": "HARASSMENT_OR_ABUSE",
|
||||
"Score": 0.27090001106262
|
||||
},
|
||||
{
|
||||
"Name": "SEXUAL",
|
||||
"Score": 0.94810000061989
|
||||
},
|
||||
{
|
||||
"Name": "VIOLENCE_OR_THREAT",
|
||||
"Score": 0.27570000290871
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"toxic": {
|
||||
"ResultList": [
|
||||
{
|
||||
"Toxicity": 0.72150000333786,
|
||||
"Labels": [
|
||||
{
|
||||
"Name": "PROFANITY",
|
||||
"Score": 0.25589999556541
|
||||
},
|
||||
{
|
||||
"Name": "HATE_SPEECH",
|
||||
"Score": 0.21729999780655
|
||||
},
|
||||
{
|
||||
"Name": "INSULT",
|
||||
"Score": 0.75519999861717
|
||||
},
|
||||
{
|
||||
"Name": "GRAPHIC",
|
||||
"Score": 0.12520000338554
|
||||
},
|
||||
{
|
||||
"Name": "HARASSMENT_OR_ABUSE",
|
||||
"Score": 0.27090001106262
|
||||
},
|
||||
{
|
||||
"Name": "SEXUAL",
|
||||
"Score": 0.64810000061989
|
||||
},
|
||||
{
|
||||
"Name": "VIOLENCE_OR_THREAT",
|
||||
"Score": 0.27570000290871
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"very_toxic": {
|
||||
"ResultList": [
|
||||
{
|
||||
"Toxicity": 0.92150000333786,
|
||||
"Labels": [
|
||||
{
|
||||
"Name": "PROFANITY",
|
||||
"Score": 0.25589999556541
|
||||
},
|
||||
{
|
||||
"Name": "HATE_SPEECH",
|
||||
"Score": 0.21729999780655
|
||||
},
|
||||
{
|
||||
"Name": "INSULT",
|
||||
"Score": 0.25519999861717
|
||||
},
|
||||
{
|
||||
"Name": "GRAPHIC",
|
||||
"Score": 0.12520000338554
|
||||
},
|
||||
{
|
||||
"Name": "HARASSMENT_OR_ABUSE",
|
||||
"Score": 0.27090001106262
|
||||
},
|
||||
{
|
||||
"Name": "SEXUAL",
|
||||
"Score": 0.44810000061989
|
||||
},
|
||||
{
|
||||
"Name": "VIOLENCE_OR_THREAT",
|
||||
"Score": 0.27570000290871
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"object": "list",
|
||||
"data": [
|
||||
{
|
||||
"object": "embedding",
|
||||
"index": 0,
|
||||
"embedding": [
|
||||
123456789,
|
||||
0.01902593,
|
||||
0.008967914,
|
||||
-0.013226582,
|
||||
-0.026961878,
|
||||
-0.017892223,
|
||||
-0.0007785152,
|
||||
-0.011031842,
|
||||
0.0068531134
|
||||
]
|
||||
}
|
||||
],
|
||||
"model": "text-embedding-3-small",
|
||||
"usage": {
|
||||
"prompt_tokens": 4,
|
||||
"total_tokens": 4
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user