{"id":13878173,"url":"https://github.com/patterns-ai-core/google_palm_api","last_synced_at":"2025-07-05T05:35:22.618Z","repository":{"id":168853668,"uuid":"644550636","full_name":"patterns-ai-core/google_palm_api","owner":"patterns-ai-core","description":"Ruby client for Google PaLM API","archived":false,"fork":false,"pushed_at":"2023-08-10T16:57:02.000Z","size":34,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-24T19:19:40.222Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/patterns-ai-core.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-05-23T18:55:25.000Z","updated_at":"2024-04-08T15:16:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"10122988-6277-47c2-911a-72d97ece8d30","html_url":"https://github.com/patterns-ai-core/google_palm_api","commit_stats":null,"previous_names":["andreibondarev/google_palm_api","patterns-ai-core/google_palm_api"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patterns-ai-core%2Fgoogle_palm_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patterns-ai-core%2Fgoogle_palm_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patterns-ai-core%2Fgoogle_palm_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patterns-ai-core%2Fgoogle_palm_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patterns-ai-core","download_url":"https://codeload.github.com/patterns-ai-core/google_palm_api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251890375,"owners_count":21660504,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-06T08:01:41.836Z","updated_at":"2025-05-01T14:33:49.053Z","avatar_url":"https://github.com/patterns-ai-core.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# GooglePalmApi\n\nRuby API client for the Google PaLM APIs.\n\nPart of the [Langchain.rb](https://github.com/andreibondarev/langchainrb) stack.\n\n![Tests status](https://github.com/andreibondarev/google_palm_api/actions/workflows/ci.yml/badge.svg)\n[![Gem Version](https://badge.fury.io/rb/google_palm_api.svg)](https://badge.fury.io/rb/google_palm_api)\n[![Docs](http://img.shields.io/badge/yard-docs-blue.svg)](http://rubydoc.info/gems/google_palm_api)\n[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/andreibondarev/google_palm_api/blob/main/LICENSE.txt)\n[![](https://dcbadge.vercel.app/api/server/WDARp7J2n8?compact=true\u0026style=flat)](https://discord.gg/WDARp7J2n8)\n\n\n## Installation\n\nInstall the gem and add to the application's Gemfile by executing:\n\n    $ bundle add google_palm_api\n\nIf bundler is not being used to manage dependencies, install the gem by executing:\n\n    $ gem install google_palm_api\n\n## Usage\n\n```ruby\nrequire 'google_palm_api'\n```\n```ruby\nclient.generate_text(prompt:)\n```\n```ruby\nclient.generate_chat_message(prompt:)\n```\n```ruby\nclient.embed(text:)\n```\n```ruby\nclient.get_model(model:)\n```\n```ruby\nclient.list_models()\n```\n```ruby\nclient.count_message_tokens(message:)\n```\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/andreibondarev/google_palm_api.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatterns-ai-core%2Fgoogle_palm_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatterns-ai-core%2Fgoogle_palm_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatterns-ai-core%2Fgoogle_palm_api/lists"}