From f4d1453bbadbfcb9436844e6dee1888d53eabcd4 Mon Sep 17 00:00:00 2001 From: Joel Bryan Juliano Date: Tue, 3 Sep 2024 23:02:06 +0200 Subject: [PATCH] added default value for resource env read --- deps/pkl/LLM.pkl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deps/pkl/LLM.pkl b/deps/pkl/LLM.pkl index c6fdbb3..f98e4bb 100644 --- a/deps/pkl/LLM.pkl +++ b/deps/pkl/LLM.pkl @@ -30,10 +30,10 @@ class Parameter { } class LLMAPIKeys { - openai_api_key: String? = read("env:OPENAI_API_KEY") - mistral_api_key: String? = read("env:MISTRAL_API_KEY") - huggingface_api_token: String? = read("env:HUGGINGFACE_API_TOKEN") - groq_api_key: String? = read("env:GROQ_API_KEY") + openai_api_key: String? = read("env:OPENAI_API_KEY") ?? "" + mistral_api_key: String? = read("env:MISTRAL_API_KEY") ?? "" + huggingface_api_token: String? = read("env:HUGGINGFACE_API_TOKEN") ?? "" + groq_api_key: String? = read("env:GROQ_API_KEY") ?? "" } class ModelFile {