@heyo-sh/create-heyo-docs 2.0.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,5 @@ declare namespace Cloudflare {
2
2
  interface Env {
3
3
  /** Preferred generic API-key binding; provider-specific auth stays in config. */
4
4
  HEYO_DOCS_AI_API_KEY?: string;
5
- /** @deprecated Use HEYO_DOCS_AI_API_KEY or config.ai.chat.auth. */
6
- OPENAI_API_KEY?: string;
7
5
  }
8
6
  }
@@ -13,7 +13,7 @@ export const POST: APIRoute = async ({ request }) => {
13
13
  { status: 404 },
14
14
  );
15
15
 
16
- const token = env.HEYO_DOCS_AI_API_KEY ?? env.OPENAI_API_KEY;
16
+ const token = env.HEYO_DOCS_AI_API_KEY;
17
17
  const { createAiChatResponse } = await import("@heyo-sh/heyo-docs/ai");
18
18
  return createAiChatResponse(request, {
19
19
  ai: config.ai,
@@ -13,7 +13,7 @@ export async function POST(request: Request) {
13
13
  );
14
14
 
15
15
  const { env } = getCloudflareContext();
16
- const token = env.HEYO_DOCS_AI_API_KEY ?? env.OPENAI_API_KEY;
16
+ const token = env.HEYO_DOCS_AI_API_KEY;
17
17
  const { createAiChatResponse } = await import("@heyo-sh/heyo-docs/ai");
18
18
  return createAiChatResponse(request, {
19
19
  ai: config.ai,
@@ -2,6 +2,4 @@
2
2
  interface CloudflareEnv {
3
3
  /** Preferred generic API-key binding; provider-specific auth stays in config. */
4
4
  HEYO_DOCS_AI_API_KEY?: string;
5
- /** @deprecated Use HEYO_DOCS_AI_API_KEY or config.ai.chat.auth. */
6
- OPENAI_API_KEY?: string;
7
5
  }
@@ -2,6 +2,4 @@
2
2
  interface Env {
3
3
  /** Preferred generic API-key binding; provider-specific auth stays in config. */
4
4
  HEYO_DOCS_AI_API_KEY?: string;
5
- /** @deprecated Use HEYO_DOCS_AI_API_KEY or config.ai.chat.auth. */
6
- OPENAI_API_KEY?: string;
7
5
  }
@@ -17,7 +17,7 @@ export async function action({ context, request }: ActionFunctionArgs) {
17
17
  { status: 404 },
18
18
  );
19
19
  const bindings = context.get(cloudflareContext);
20
- const token = bindings.HEYO_DOCS_AI_API_KEY ?? bindings.OPENAI_API_KEY;
20
+ const token = bindings.HEYO_DOCS_AI_API_KEY;
21
21
  const { createAiChatResponse } = await import("@heyo-sh/heyo-docs/ai");
22
22
  return createAiChatResponse(request, {
23
23
  ai: config.ai,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heyo-sh/create-heyo-docs",
3
- "version": "2.0.0",
3
+ "version": "3.0.0",
4
4
  "description": "Create a standalone Heyo Docs documentation project.",
5
5
  "homepage": "https://heyo.sh",
6
6
  "repository": {