Files
Jordan Ritter 2005203725 fix(showcase/ms-agent-harness-dotnet): empty placeholder values in .env.example
The GitHubToken line shipped `ghp_...` as a literal placeholder VALUE. When
a developer runs `cp .env.example .env` and forgets to edit, the entrypoint's
`-z "$GitHubToken"` check sees a non-empty string and skips the "key missing"
warning. The literal `ghp_...` is then sent upstream, producing a confusing
401 that looks like an OpenAI/GitHub Models bug rather than a setup issue.

Move the format example into a comment above the line and leave the value
empty so the empty-value check in entrypoint.sh fires the clear warning.
OPENAI_API_KEY was already empty (prior fix); verified still empty.
2026-05-26 13:36:38 -07:00

41 lines
1.6 KiB
Bash

# =============================================================================
# Agent backend (.NET, agent/Program.cs)
# =============================================================================
# OpenAI-compatible API key used by the .NET agent.
# Precedence: OPENAI_API_KEY > GitHubToken > "sk-mock-local" (mock fallback).
# Set OPENAI_API_KEY for production OpenAI/Azure usage.
OPENAI_API_KEY=
# GitHub token for accessing GitHub Models (Azure AI inference endpoint).
# Used as a fallback API key when OPENAI_API_KEY is not set.
# Get via: gh auth token
# Format: ghp_...
GitHubToken=
# Optional. Override the OpenAI-compatible base URL (e.g. when pointing at
# aimock, a self-hosted gateway, or Azure AI inference).
# Defaults to https://models.inference.ai.azure.com when unset.
# OPENAI_BASE_URL=
# =============================================================================
# Next.js frontend (src/app/api/*)
# =============================================================================
# URL the CopilotKit runtime proxy uses to reach the .NET agent backend.
# Inside the container this is localhost:8000; in dev set to wherever the
# `dotnet run` process is listening.
AGENT_URL=http://localhost:8000
# Public base URL of the Next.js app — used by the smoke endpoint to build
# absolute URLs back to itself.
NEXT_PUBLIC_BASE_URL=http://localhost:3000
# Optional. MCP server URL forwarded to CopilotKit's MCP integration.
# Defaults to https://mcp.excalidraw.com when unset.
# MCP_SERVER_URL=
# Optional. Bearer token required by /api/debug. When unset the debug route
# is effectively disabled.
# SHOWCASE_DEBUG_TOKEN=