Skip to content

Commit

Permalink
Add default models to llm constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoladicicco committed Sep 19, 2024
1 parent efcf7a8 commit 78be193
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/llm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ struct GroqLLM <: AbstractLLM
api_key::String
model_id::String

function GroqLLM(model_id::String)
function GroqLLM(model_id::String = "llama-3.1-8b-instant")
api_key = get(ENV, "GROQ_API_KEY", "")
if isempty(api_key)
error("Environment variable GROQ_API_KEY is not set")
Expand All @@ -33,7 +33,7 @@ struct GoogleLLM <: AbstractLLM
api_key::String
model_id::String

function GoogleLLM(model_id::String)
function GoogleLLM(model_id::String = "gemini-1.5-pro")
api_key = get(ENV, "GOOGLE_API_KEY", "")
if isempty(api_key)
error("Environment variable GOOGLE_API_KEY is not set")
Expand Down

0 comments on commit 78be193

Please sign in to comment.