added support for Anthropic and it is recommended

move code to work with AI from rest class to separate class
This commit is contained in:
Nikita 2024-12-27 14:31:22 +03:00
parent 1eda5f0e15
commit e67eca2ee0
14 changed files with 797 additions and 342 deletions

View file

@ -0,0 +1,4 @@
export default function isValidAnthropicApiKey(apiKey) {
const regex = /^sk-ant-[a-zA-Z0-9]/;
return regex.test(apiKey);
}