You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 12, 2024. It is now read-only.
|**Gemini**| 🔐<br>Proprietary | API only *(This repository contains unofficial API)*| Gemini is a proprietary multimodal AI developed by Google DeepMind. It includes models like Gemini Pro and Gemini Pro Vision. |[Paper](https://arxiv.org/abs/2312.11805), [Website](https://deepmind.google/technologies/gemini/#introduction), [API](https://aistudio.google.com/), [API Docs](https://cloud.google.com/vertex-ai/docs/generative-ai/model-reference/gemini)|
32
+
|**Gemma**| 🤝<br>Open Source | Downloadable weights for on-premises use | Gemma models are open-source, text-to-text language models with downloadable weights. Perfect for use cases like question answering and summarization. |[Paprer](https://arxiv.org/abs/2403.08295), [Website](https://ai.google.dev/gemma/docs?hl=ko), [Model Card](https://huggingface.co/google/gemma-7b)|
33
+
|**Code Gemma**| 🤝<br>Open Source | Downloadable weights for on-premises use | Code Gemma models are designed specifically for coding tasks and are also open-source, providing flexibility for developers in handling code generation tasks. |[Post](https://huggingface.co/blog/codegemma), [Hugging Face Collection](https://huggingface.co/collections/google/codegemma-release-66152ac7b683e2667abdee11), [Model Card](https://huggingface.co/google/codegemma-7b-it)|
34
+
35
+
<details><summary>Code Examples of Gemma and GemmaCode </summary>
36
+
37
+
#### Gemma
38
+
```python
39
+
from transformers import AutoTokenizer, AutoModelForCausalLM
-[Utilize free open-source LLM API through Open Router ✅](#utilize-free-open-source-llm-api-through-open-router)
61
97
62
98
@@ -65,11 +101,11 @@ Collaborated competently with [Antonio Cheong](https://github.com/acheong08).
65
101
66
102
67
103
68
-
<br>
69
104
70
105
71
106
72
107
108
+
<br>
73
109
74
110
## What is [Gemini](https://deepmind.google/technologies/gemini/#introduction)?
75
111
@@ -529,7 +565,7 @@ response = GeminiClient.generate_custom_content("Give me some information about
529
565
530
566
## Further
531
567
532
-
### Use rotating proxies
568
+
### Use rotating proxies via [Smart Proxy by Crawlbase](https://crawlbase.com/docs/smart-proxy/?utm_source=github_ad&utm_medium=social&utm_campaign=bard_api)
533
569
534
570
If you want to **avoid blocked requests** and bans, then use [Smart Proxy by Crawlbase](https://crawlbase.com/docs/smart-proxy/?utm_source=github_ad&utm_medium=social&utm_campaign=bard_api). It forwards your connection requests to a **randomly rotating IP address** in a pool of proxies before reaching the target website. The combination of AI and ML make it more effective to avoid CAPTCHAs and blocks.
[CodeGemma](https://huggingface.co/blog/codegemma), which is an official release from Google for code LLMs, was released on April 9, 2024. It provides three models specifically designed for generating and interacting with code. You can explore the [Code Gemma models](https://huggingface.co/collections/google/codegemma-release-66152ac7b683e2667abdee11) and view the [model card](https://huggingface.co/google/codegemma-7b-it) for more details.
635
+
636
+
### How to use Code Gemma
637
+
```python
638
+
from transformers import GemmaTokenizer, AutoModelForCausalLM
@@ -630,20 +688,18 @@ The free model list includes:
630
688
631
689
<br>
632
690
691
+
## Sponsor, [Crawlbase](https://crawlbase.com/)
692
+
Use [Crawlbase](https://crawlbase.com/) API for efficient data scraping to train AI models, boasting a 98% success rate and 99.9% uptime. It's quick to start, GDPR/CCPA compliant, supports massive data extraction, and is trusted by 70k+ developers.
First review [HanaokaYuzu/Gemini-API](https://github.com/HanaokaYuzu/Gemini-API) and the [Official Google Gemini API](https://aistudio.google.com/) before using this package.
636
698
You can find most help on the [FAQ](https://github.com/dsdanielpark/Gemini-API/blob/main/documents/README_FAQ.md) and [Issue](https://github.com/dsdanielpark/Gemini-API/issues) pages.
Sincerely grateful for any reports on new features or bugs. Your valuable feedback on the code is highly appreciated. Frequent errors may occur due to changes in Google's service API interface. Both [Issue reports](https://github.com/dsdanielpark/Gemini-API/issues) and [Pull requests](https://github.com/dsdanielpark/Gemini-API/pulls) contributing to improvements are always welcome. We strive to maintain an active and courteous open community.
642
702
643
-
644
-
## Sponsor
645
-
Use [Crawlbase](https://crawlbase.com/) API for efficient data scraping to train AI models, boasting a 98% success rate and 99.9% uptime. It's quick to start, GDPR/CCPA compliant, supports massive data extraction, and is trusted by 70k+ developers.
646
-
647
703
## Contributors
648
704
We would like to express our sincere gratitude to all the contributors.
0 commit comments