google-gemini / generative-ai-python

The official Python library for the Google Gemini API
https://pypi.org/project/google-generativeai/
Apache License 2.0
1.39k stars 270 forks source link

Indic Languages supported via web-interface is not supported via API #216

Open VaishU2235 opened 6 months ago

VaishU2235 commented 6 months ago

Description of the feature request:

Indic Languages which are supported via web-interface is not supported via API. Gemini web interface currently supports major Indic languages like Hindi, Bangla, Marathi, Telugu, Tamil, Malayalam, and Kannada. It supports only Hindi and Bangla via API. But not Marathi, Telugu, Tamil, Malayalam, and Kannada. Please stop restricting this languages in API.

What problem are you trying to solve with this feature?

This issue is relevant for languages with ~10 M speakers like Marathi, Telugu, Tamil, and Malayalam. All these languages have large number of native speakers. Restriciting these languages via API affects the development of LLM applications for these communities.

Any other information you'd like to share?

model = genai.GenerativeModel('gemini-pro')

Following lines give the same output:

response = model.generate_content('''మీరు తెలుగు మాట్లాడతారా?''') # Meaning "do you speak telugu?" 
response = model.generate_content('''നിങ്ങൾക്ക് മലയാളത്തിൽ സംസാരിക്കാമോ?''') # Meaning "do you speak malayalam?" 

Are giving the following output via API for print(response.candidates): [index: 0 finish_reason: OTHER ]

chinmayakcv commented 6 months ago

Any updates on this?

mujeebcpy commented 2 months ago

im also stuck with this issue. any update please?

imvbhuvan commented 2 months ago

Same problem, any updates !