mirror of
https://github.com/yihong0618/bilingual_book_maker.git
synced 2025-06-05 19:15:34 +00:00
modify: model settings
This commit is contained in:
parent
4649ad1aaf
commit
92cdadbfdf
@ -16,20 +16,15 @@ generation_config = {
|
||||
"temperature": 1.0,
|
||||
"top_p": 1,
|
||||
"top_k": 1,
|
||||
"max_output_tokens": 2048,
|
||||
"max_output_tokens": 8192,
|
||||
}
|
||||
|
||||
safety_settings = [
|
||||
{"category": "HARM_CATEGORY_HARASSMENT", "threshold": "BLOCK_MEDIUM_AND_ABOVE"},
|
||||
{"category": "HARM_CATEGORY_HATE_SPEECH", "threshold": "BLOCK_MEDIUM_AND_ABOVE"},
|
||||
{
|
||||
"category": "HARM_CATEGORY_SEXUALLY_EXPLICIT",
|
||||
"threshold": "BLOCK_MEDIUM_AND_ABOVE",
|
||||
},
|
||||
{
|
||||
"category": "HARM_CATEGORY_DANGEROUS_CONTENT",
|
||||
"threshold": "BLOCK_MEDIUM_AND_ABOVE",
|
||||
},
|
||||
safety_settings = {
|
||||
"HATE": "BLOCK_NONE",
|
||||
"HARASSMENT": "BLOCK_NONE",
|
||||
"SEXUAL": "BLOCK_NONE",
|
||||
"DANGEROUS": "BLOCK_NONE",
|
||||
}
|
||||
|
||||
PROMPT_ENV_MAP = {
|
||||
"user": "BBM_GEMINIAPI_USER_MSG_TEMPLATE",
|
||||
|
Loading…
x
Reference in New Issue
Block a user