feat: normaliser les URL recette par entité
Some checks failed
Validation applicative / TypeScript, tests et build (push) Failing after 2m55s
Some checks failed
Validation applicative / TypeScript, tests et build (push) Failing after 2m55s
This commit is contained in:
@@ -10,7 +10,7 @@ import {
|
||||
import { readSecretFile, resolveServerSecret } from "./_core/env";
|
||||
|
||||
const connection: ReferentielIaConnection = {
|
||||
baseUrl: "https://referentiel-ia.recette.santinova-soft.org",
|
||||
baseUrl: "https://referentiel-ia-santinova.recette.santinova-soft.org",
|
||||
token: "test-token",
|
||||
};
|
||||
|
||||
@@ -63,7 +63,7 @@ describe("Référentiel IA", () => {
|
||||
receivedUrl = String(url);
|
||||
receivedInit = init;
|
||||
if (callCount === 1) {
|
||||
expect(receivedUrl).toBe("https://referentiel-ia.recette.santinova-soft.org/api/integration/v1/recommendations");
|
||||
expect(receivedUrl).toBe("https://referentiel-ia-santinova.recette.santinova-soft.org/api/integration/v1/recommendations");
|
||||
expect(JSON.parse(String(receivedInit?.body))).toEqual({
|
||||
useCase: "texte",
|
||||
optimizeCost: true,
|
||||
@@ -84,7 +84,7 @@ describe("Référentiel IA", () => {
|
||||
},
|
||||
);
|
||||
|
||||
expect(receivedUrl).toBe("https://referentiel-ia.recette.santinova-soft.org/api/integration/v1/invoke");
|
||||
expect(receivedUrl).toBe("https://referentiel-ia-santinova.recette.santinova-soft.org/api/integration/v1/invoke");
|
||||
expect(receivedInit?.headers).toMatchObject({ authorization: "Bearer test-token" });
|
||||
expect(JSON.parse(String(receivedInit?.body))).toMatchObject({
|
||||
engineSlug: "santino-expert",
|
||||
|
||||
Reference in New Issue
Block a user