Direct agent to setup AI integrations
This commit is contained in:
@@ -1,17 +1,13 @@
|
|||||||
First action: load/use only these two provider-specific skills by exact name:
|
Clone and run https://git.komnenos.me/springfw/random-proxy-simple in ./random-proxy-simple.
|
||||||
- ai-integrations-openai
|
|
||||||
- ai-integrations-anthropic
|
|
||||||
|
|
||||||
Do not load the generic integrations skill and do not search for integrations before loading
|
Goal: get the app running once on port 3000 with OpenAI and Anthropic Replit AI Integrations wired.
|
||||||
those two skills.
|
|
||||||
|
|
||||||
Then clone and run https://git.komnenos.me/springfw/random-proxy-simple in ./random-proxy-simple.
|
|
||||||
|
|
||||||
Goal: get the app running once on port 3000 with OpenAI and Anthropic provider integration
|
|
||||||
variables available.
|
|
||||||
|
|
||||||
Bearer token for this deployment: DEPLOYMENT_GENERATED_PROXY_TOKEN
|
Bearer token for this deployment: DEPLOYMENT_GENERATED_PROXY_TOKEN
|
||||||
|
|
||||||
|
Important: use setupReplitAIIntegrations, not searchIntegrations, to wire OpenAI and Anthropic.
|
||||||
|
OpenAI and Anthropic are Replit AI Integrations that provide AI_INTEGRATIONS_* variables; they
|
||||||
|
are not OAuth connectors.
|
||||||
|
|
||||||
Do not:
|
Do not:
|
||||||
- add it to a parent workspace
|
- add it to a parent workspace
|
||||||
- move it into artifacts/
|
- move it into artifacts/
|
||||||
@@ -20,46 +16,35 @@ Do not:
|
|||||||
- create config.json or /tmp config files
|
- create config.json or /tmp config files
|
||||||
- inspect/free unrelated ports
|
- inspect/free unrelated ports
|
||||||
- use nohup/setsid/background shell tricks
|
- use nohup/setsid/background shell tricks
|
||||||
- load or use the generic integrations skill
|
- call searchIntegrations
|
||||||
- search the Replit integrations catalog
|
- search the Replit integrations catalog
|
||||||
- search for OpenAI, Anthropic, AI, LLM, chat, completion, inference, GPT, or Claude integrations
|
|
||||||
- provision, install, or discover integrations through generic search
|
|
||||||
- invent, rotate, print, store, or replace the bearer token
|
|
||||||
- create provider API secrets manually
|
- create provider API secrets manually
|
||||||
- use public OpenAI or Anthropic endpoints
|
- use public OpenAI or Anthropic endpoints
|
||||||
|
- invent, rotate, print, store, or replace the bearer token
|
||||||
- run a foreground server command directly in the shell
|
- run a foreground server command directly in the shell
|
||||||
- run verification commands
|
- run verification commands
|
||||||
- run chat-completion smoke tests unless asked
|
- run chat-completion smoke tests unless asked
|
||||||
|
|
||||||
Steps:
|
Steps:
|
||||||
|
|
||||||
1. Confirm only these provider-specific skills were loaded/used:
|
1. Clone into ./random-proxy-simple.
|
||||||
- ai-integrations-openai
|
|
||||||
- ai-integrations-anthropic
|
|
||||||
|
|
||||||
Do not search for them. Do not load the generic integrations skill.
|
2. Call setupReplitAIIntegrations for:
|
||||||
|
- OpenAI
|
||||||
|
- Anthropic
|
||||||
|
|
||||||
2. Clone into ./random-proxy-simple.
|
3. From ./random-proxy-simple, run:
|
||||||
|
|
||||||
3. Ensure the two provider-specific skills make these variables available, then use the variable names exactly
|
|
||||||
as written in the workflow command:
|
|
||||||
- AI_INTEGRATIONS_OPENAI_BASE_URL
|
|
||||||
- AI_INTEGRATIONS_OPENAI_API_KEY
|
|
||||||
- AI_INTEGRATIONS_ANTHROPIC_BASE_URL
|
|
||||||
- AI_INTEGRATIONS_ANTHROPIC_API_KEY
|
|
||||||
|
|
||||||
4. From ./random-proxy-simple, run:
|
|
||||||
pnpm install --ignore-workspace
|
pnpm install --ignore-workspace
|
||||||
|
|
||||||
5. Create the smallest persistent workflow named "Random Proxy Simple" with this exact run command:
|
4. Create the smallest persistent workflow named "Random Proxy Simple" with this exact run command:
|
||||||
|
|
||||||
cd random-proxy-simple && pnpm dev -- --host 0.0.0.0 --port 3000 --proxy-api-key DEPLOYMENT_GENERATED_PROXY_TOKEN --openai-base-url "$AI_INTEGRATIONS_OPENAI_BASE_URL" --openai-api-key "$AI_INTEGRATIONS_OPENAI_API_KEY" --anthropic-base-url "$AI_INTEGRATIONS_ANTHROPIC_BASE_URL" --anthropic-api-key "$AI_INTEGRATIONS_ANTHROPIC_API_KEY"
|
cd random-proxy-simple && pnpm dev -- --host 0.0.0.0 --port 3000 --proxy-api-key DEPLOYMENT_GENERATED_PROXY_TOKEN --openai-base-url "$AI_INTEGRATIONS_OPENAI_BASE_URL" --openai-api-key "$AI_INTEGRATIONS_OPENAI_API_KEY" --anthropic-base-url "$AI_INTEGRATIONS_ANTHROPIC_BASE_URL" --anthropic-api-key "$AI_INTEGRATIONS_ANTHROPIC_API_KEY"
|
||||||
|
|
||||||
6. Start/restart that workflow once.
|
5. Start/restart that workflow once.
|
||||||
|
|
||||||
7. Do not run health, dashboard, model-list, or chat-completion verification commands.
|
6. Do not run health, dashboard, model-list, or chat-completion verification commands.
|
||||||
|
|
||||||
Report only:
|
Report only:
|
||||||
- local URL
|
- local URL
|
||||||
- whether ai-integrations-openai and ai-integrations-anthropic were used
|
- whether setupReplitAIIntegrations wired OpenAI and Anthropic
|
||||||
- that no verification commands were run
|
- that no verification commands were run
|
||||||
|
|||||||
Reference in New Issue
Block a user