Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Thai language in google generativeai with python

Can I use Thai language in the prompt of Google generativeai with python in generate_text function?

0 2 864
2 REPLIES 2

Thai language is one of the available models in Generative AI. Please refer to this documentation.

I can use Thai language to ask the Bard AI if the answer is numbers. There were no problems with the results. But if the answer must be in Thai, I will encounter this error.
"google.api_core.exceptions.InvalidArgument: 400 The requested language is not supported by models/text-bison-001"
Do you have any suggestions for using Python to deal with this problem?