generative-ai-python icon indicating copy to clipboard operation
generative-ai-python copied to clipboard

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

Open VaishU2235 opened this issue 1 year ago • 3 comments

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 ]

VaishU2235 avatar Feb 23 '24 08:02 VaishU2235

Any updates on this?

chinmayakcv avatar Mar 05 '24 12:03 chinmayakcv

im also stuck with this issue. any update please?

mujeebcpy avatar Jun 20 '24 16:06 mujeebcpy

Same problem, any updates !

imvbhuvan avatar Jul 07 '24 11:07 imvbhuvan