From 1f89800b52eb6763eb008a1a4c4e71abbf33f2ea Mon Sep 17 00:00:00 2001 From: Lance Tuller Date: Wed, 1 Jul 2026 11:03:26 -0400 Subject: [PATCH] chore(coreweave): share project setup guidance --- packages/ai/src/registry/coreweave.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/ai/src/registry/coreweave.ts b/packages/ai/src/registry/coreweave.ts index 27e1d2589..774d556fa 100644 --- a/packages/ai/src/registry/coreweave.ts +++ b/packages/ai/src/registry/coreweave.ts @@ -5,14 +5,15 @@ import { createApiKeyLogin } from "./api-key-login"; import type { OAuthLoginCallbacks } from "./oauth/types"; import type { ProviderDefinition } from "./types"; -const PROJECT_SETUP_INSTRUCTIONS = - "Create or select a CoreWeave Serverless Inference project, add export COREWEAVE_PROJECT=/ to your shell startup file (for example ~/.zshrc, ~/.bashrc, or your shell's profile/rc file) for the OpenAI-Project header, then copy your API key from account settings"; +const PROJECT_PERSIST_INSTRUCTIONS = + "add export COREWEAVE_PROJECT=/ to your shell startup file (for example ~/.zshrc, ~/.bashrc, or your shell's profile/rc file)"; +const PROJECT_SETUP_INSTRUCTIONS = `Create or select a CoreWeave Serverless Inference project, ${PROJECT_PERSIST_INSTRUCTIONS} for the OpenAI-Project header, then copy your API key from account settings`; function requireCoreWeaveProjectHeaders(): Record { const headers = coreWeaveProjectHeaders($env); if (!headers) { throw new AIError.ConfigurationError( - "CoreWeave Serverless Inference requires OpenAI-Project. Set COREWEAVE_PROJECT=/ before running /login coreweave. To persist it, add export COREWEAVE_PROJECT=/ to your shell startup file, such as ~/.zshrc, ~/.bashrc, or your shell's profile/rc file.", + `CoreWeave Serverless Inference requires OpenAI-Project. Set COREWEAVE_PROJECT=/ before running /login coreweave. To persist it, ${PROJECT_PERSIST_INSTRUCTIONS}.`, ); } return headers;