feat: пакет Composer rsgrinko/ai-sdk, настройки без .env
- composer.json (PSR-4), лицензия MIT, export-ignore для тестов, примеров и docs. - Config: настройки из массива. AiClient/Agent::fromArray() — только массив, ::create() — массив, недостающее из окружения; fromEnv() работает как раньше. Неизвестный ключ — InvalidArgumentException. - verifySsl и caInfo из AiClient теперь действительно доходят до cURL (раньше транспорт читал только AI_VERIFY_SSL/AI_CAINFO). Проверка TLS по умолчанию выключена, включается verifySsl: true или AI_VERIFY_SSL=true. - HttpRequestTool: свои verifySsl и caInfo. - README: установка, способы настройки, лицензия.
This commit is contained in:
1 parent
0f08f35ba4
commit
e44ddc702f
13 files changed
+581
-39
No files matched your search
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2026 rsgrinko
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
Reference in new issue
Block a user