feat(ai): AI gateway integration with custom provider support #1072
feat(ai): AI gateway integration with custom provider support #1072ddecrulle wants to merge 20 commits into
Quality Gate passed
Annotations
Check warning on line 444 in web/src/core/adapters/onyxiaApi/onyxiaApi.ts
sonarqubecloud / SonarCloud Code Analysis
Avoid using `instanceof` for type checking as it can lead to unreliable results.
See more on https://sonarcloud.io/project/issues?id=InseeFrLab_onyxia&issues=AZ7Z7tvVCtsnrywd-NQd&open=AZ7Z7tvVCtsnrywd-NQd&pullRequest=1072
Check warning on line 280 in web/src/core/bootstrap.ts
sonarqubecloud / SonarCloud Code Analysis
Refactor the code to remove this label and the need for it.
See more on https://sonarcloud.io/project/issues?id=InseeFrLab_onyxia&issues=AZ6sSNoaj_1DzmHiyyhy&open=AZ6sSNoaj_1DzmHiyyhy&pullRequest=1072
Check warning on line 296 in web/src/core/bootstrap.ts
sonarqubecloud / SonarCloud Code Analysis
Refactor the code to remove this label and the need for it.
See more on https://sonarcloud.io/project/issues?id=InseeFrLab_onyxia&issues=AZ8ZK40IwCc9a8pQh5y2&open=AZ8ZK40IwCc9a8pQh5y2&pullRequest=1072
Check warning on line 280 in web/src/core/bootstrap.ts
sonarqubecloud / SonarCloud Code Analysis
Remove this "init_ai" label.
See more on https://sonarcloud.io/project/issues?id=InseeFrLab_onyxia&issues=AZ6sSNoaj_1DzmHiyyhx&open=AZ6sSNoaj_1DzmHiyyhx&pullRequest=1072
Check failure on line 448 in web/src/core/adapters/onyxiaApi/onyxiaApi.ts
sonarqubecloud / SonarCloud Code Analysis
Refactor this code to not nest functions more than 4 levels deep.
See more on https://sonarcloud.io/project/issues?id=InseeFrLab_onyxia&issues=AZ7Z7tvVCtsnrywd-NQe&open=AZ7Z7tvVCtsnrywd-NQe&pullRequest=1072
sonarqubecloud / SonarCloud Code Analysis
Avoid using `instanceof` for type checking as it can lead to unreliable results.
See more on https://sonarcloud.io/project/issues?id=InseeFrLab_onyxia&issues=AZ832RQwLvqY7fqnokhS&open=AZ832RQwLvqY7fqnokhS&pullRequest=1072
Check failure on line 48 in web/src/core/bootstrap.ts
sonarqubecloud / SonarCloud Code Analysis
Refactor this function to reduce its Cognitive Complexity from 20 to the 15 allowed.
See more on https://sonarcloud.io/project/issues?id=InseeFrLab_onyxia&issues=AZ7Z7t0ACtsnrywd-NQf&open=AZ7Z7t0ACtsnrywd-NQf&pullRequest=1072
Check warning on line 296 in web/src/core/bootstrap.ts
sonarqubecloud / SonarCloud Code Analysis
Remove this "region_ai" label.
See more on https://sonarcloud.io/project/issues?id=InseeFrLab_onyxia&issues=AZ8ZK40HwCc9a8pQh5y1&open=AZ8ZK40HwCc9a8pQh5y1&pullRequest=1072
Check warning on line 1287 in web/src/env.ts
sonarqubecloud / SonarCloud Code Analysis
Use `.includes()`, rather than `.indexOf()`, when checking for existence.
See more on https://sonarcloud.io/project/issues?id=InseeFrLab_onyxia&issues=AZ7-Mrs04FMQFCzAnvr1&open=AZ7-Mrs04FMQFCzAnvr1&pullRequest=1072
Check warning on line 446 in web/src/core/adapters/onyxiaApi/onyxiaApi.ts
sonarqubecloud / SonarCloud Code Analysis
Extract this nested ternary operation into an independent statement.
See more on https://sonarcloud.io/project/issues?id=InseeFrLab_onyxia&issues=AZ7Z7tvVCtsnrywd-NQc&open=AZ7Z7tvVCtsnrywd-NQc&pullRequest=1072