add novita provider

This commit is contained in:
rock.lee
2025-03-08 15:45:49 +08:00
parent b523a98289
commit 867c375843
4 changed files with 44 additions and 2 deletions

View File

@@ -148,6 +148,7 @@ prompt_cloud_api_provider_options() {
echo -e "${YELLOW}4) Groq${NC}"
echo -e "${YELLOW}5) HuggingFace Inference API${NC}"
echo -e "${YELLOW}6) Azure OpenAI${NC}"
echo -e "${YELLOW}7) Novita${NC}"
echo -e "${YELLOW}b) Back to Main Menu${NC}"
echo
read -p "$(echo -e "${DEFAULT_FG}Choose option (1-6, or b): ${NC}")" provider_choice
@@ -428,6 +429,12 @@ connect_cloud_api_provider() {
model_name="gpt-4o"
get_api_key
break ;;
7) # Novita
provider_name="Novita"
llm_name="novita"
model_name="deepseek/deepseek-r1"
get_api_key
break ;;
b|B) clear; return ;; # Clear screen and Back to Main Menu
*) echo -e "\n${RED}Invalid choice. Please choose 1-6, or b.${NC}" ; sleep 1 ;;
esac