diff --git a/README.md b/README.md index 2b80637dc..00b113f57 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ For a quick start, simply set it via `ENV["OPENAI_API_KEY"] = "your-api-key"` Install PromptingTools: ```julia using Pkg -Pkg.add("PromptingTools.jl") +Pkg.add("PromptingTools") ``` And we're ready to go! diff --git a/ext/GoogleGenAIPromptingToolsExt.jl b/ext/GoogleGenAIPromptingToolsExt.jl index 12d875441..dd2db2f42 100644 --- a/ext/GoogleGenAIPromptingToolsExt.jl +++ b/ext/GoogleGenAIPromptingToolsExt.jl @@ -11,7 +11,7 @@ function PromptingTools.ggi_generate_content(prompt_schema::PT.AbstractGoogleSch conversation; http_kwargs, api_kwargs...) ## Build the provider provider = GoogleGenAI.GoogleProvider(; api_key) - url = "$(provider.base_url)/models/$model_name:generateContent?key=$(provider.api_key)" + url = "$(provider.base_url)/$(provider.api_version)/models/$model_name:generateContent?key=$(provider.api_key)" generation_config = Dict{String, Any}() for (key, value) in api_kwargs generation_config[string(key)] = value