fix(api): update socrates endpoint (#66849)
Some checks failed
CI - E2E - 3rd party donation tests / Build Client (24) (push) Has been cancelled
CI - E2E - 3rd party donation tests / Build API (Container) (push) Has been cancelled
CI - Node.js / Lint (24) (push) Has been cancelled
CI - E2E - 3rd party donation tests / Run Playwright 3rd Party Donation Tests (chromium, 24) (push) Has been cancelled
CI - Node.js / Build (24) (push) Has been cancelled
CI - Node.js / Test (24) (push) Has been cancelled
CI - Node.js / Test - Upcoming Changes (24) (push) Has been cancelled
CI - Node.js / Test - i18n (italian, 24) (push) Has been cancelled
CI - Node.js / Test - i18n (portuguese, 24) (push) Has been cancelled

This commit is contained in:
Mrugesh Mohapatra 2026-04-08 04:03:23 +05:30 committed by GitHub
parent 7b8273e0e0
commit e456e28f16
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -95,7 +95,7 @@ export const socratesRoutes: FastifyPluginCallbackTypebox = (
};
try {
const response = await fetch(SOCRATES_ENDPOINT, {
const response = await fetch(`${SOCRATES_ENDPOINT}/hint`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',

View File

@ -36,8 +36,8 @@ GROWTHBOOK_FASTIFY_API_HOST=fastify_api_sdk_api_host_from_growthbook_dashboard
GROWTHBOOK_FASTIFY_CLIENT_KEY=fastify_api_sdk_client_key_from_growthbook_dashboard
# Socrates (AI-powered hints)
SOCRATES_API_KEY=socrates_api_key_from_dashboard
SOCRATES_ENDPOINT=https://librarian-v1.freecodecamp.org/hint
SOCRATES_API_KEY=something
SOCRATES_ENDPOINT=https://localhost:4000
# Application paths
HOME_LOCATION=http://localhost:8000