feat(llm): add native NanoGPT provider support (#131)
Align NanoGPT integration with the published OpenAI-compatible API contract, including model discovery, configuration/setup surfaces, and secret-redaction safeguards.\n\nFixes #129.
This commit is contained in:
1 parent
8ccea7c82a
commit
8df967dd39
13 files changed
+264
-9
No files matched your search
+12
-1
@@ -22,9 +22,10 @@ echo "Choose your LLM provider:"
|
||||
echo " 1) OpenRouter (recommended - access to all models)"
|
||||
echo " 2) Anthropic (Claude direct)"
|
||||
echo " 3) OpenAI (GPT models)"
|
||||
echo " 4) NanoGPT (direct OpenAI-compatible API)"
|
||||
echo ""
|
||||
|
||||
read -r -p "Enter choice [1-3]: " choice
|
||||
read -r -p "Enter choice [1-4]: " choice
|
||||
|
||||
case $choice in
|
||||
1)
|
||||
@@ -57,6 +58,16 @@ case $choice in
|
||||
printf 'LLM_PROVIDER=openai\n'
|
||||
} > "$ENV_FILE"
|
||||
;;
|
||||
4)
|
||||
echo ""
|
||||
echo "Get your NanoGPT API key at: https://nano-gpt.com/api"
|
||||
read -rsp "Enter your NanoGPT API key: " api_key
|
||||
echo ""
|
||||
{
|
||||
printf 'NANOGPT_API_KEY=%s\n' "$api_key"
|
||||
printf 'LLM_PROVIDER=nanogpt\n'
|
||||
} > "$ENV_FILE"
|
||||
;;
|
||||
*)
|
||||
echo "Invalid choice"
|
||||
exit 1
|
||||
|
||||
Reference in new issue
Block a user