Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing an issue with the API end point in the extension package of gemini + a little README typo #106

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down
2 changes: 1 addition & 1 deletion ext/GoogleGenAIPromptingToolsExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down