Skip to content

How can I use Chinese as input  #98

@NingJing0718

Description

@NingJing0718
import pprint
import google.generativeai as palm
import pprint

palm.configure(api_key='MY_API_KEY')

# inpu as input
inpu = "你好"
response = palm.chat(messages=inpu)

print(response)

this is my code ,and how can i do if i want use Chinese as input
when i use Chinese as input it returns none and the filters give me a blocked reason like the image show
theproblem

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions