mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 10:22:16 +00:00
fix(api): update socrates endpoint (#66849)
This commit is contained in:
committed by
GitHub
parent
7b8273e0e0
commit
e456e28f16
@@ -95,7 +95,7 @@ export const socratesRoutes: FastifyPluginCallbackTypebox = (
|
|||||||
};
|
};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await fetch(SOCRATES_ENDPOINT, {
|
const response = await fetch(`${SOCRATES_ENDPOINT}/hint`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
|||||||
+2
-2
@@ -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
|
GROWTHBOOK_FASTIFY_CLIENT_KEY=fastify_api_sdk_client_key_from_growthbook_dashboard
|
||||||
|
|
||||||
# Socrates (AI-powered hints)
|
# Socrates (AI-powered hints)
|
||||||
SOCRATES_API_KEY=socrates_api_key_from_dashboard
|
SOCRATES_API_KEY=something
|
||||||
SOCRATES_ENDPOINT=https://librarian-v1.freecodecamp.org/hint
|
SOCRATES_ENDPOINT=https://localhost:4000
|
||||||
|
|
||||||
# Application paths
|
# Application paths
|
||||||
HOME_LOCATION=http://localhost:8000
|
HOME_LOCATION=http://localhost:8000
|
||||||
|
|||||||
Reference in New Issue
Block a user