mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-18 17:51:02 +02:00
Fixed missed comma
This commit is contained in:
parent
b98e553965
commit
6bfa01d580
2 changed files with 8 additions and 6 deletions
|
|
@ -55,7 +55,7 @@ setuptools.setup(
|
||||||
"openai",
|
"openai",
|
||||||
"neo4j",
|
"neo4j",
|
||||||
"tiktoken",
|
"tiktoken",
|
||||||
"google-generativeai"
|
"google-generativeai",
|
||||||
],
|
],
|
||||||
scripts=[
|
scripts=[
|
||||||
"scripts/chunker-recursive",
|
"scripts/chunker-recursive",
|
||||||
|
|
|
||||||
|
|
@ -74,12 +74,14 @@ class Processor(ConsumerProducer):
|
||||||
"response_mime_type": "text/plain",
|
"response_mime_type": "text/plain",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
block_level = HarmBlockThreshold.BLOCK_ONLY_HIGH
|
||||||
|
|
||||||
self.safety_settings={
|
self.safety_settings={
|
||||||
HarmCategory.HARM_CATEGORY_HATE_SPEECH: HarmBlockThreshold.BLOCK_ONLY_HIGH,
|
HarmCategory.HARM_CATEGORY_HATE_SPEECH: block_level,
|
||||||
HarmCategory.HARM_CATEGORY_HARASSMENT: HarmBlockThreshold.BLOCK_ONLY_HIGH,
|
HarmCategory.HARM_CATEGORY_HARASSMENT: block_level,
|
||||||
HarmCategory.HARM_CATEGORY_SEXUALLY_EXPLICIT: HarmBlockThreshold.BLOCK_ONLY_HIGH,
|
HarmCategory.HARM_CATEGORY_SEXUALLY_EXPLICIT: block_level,
|
||||||
HarmCategory.HARM_CATEGORY_DANGEROUS: HarmBlockThreshold.BLOCK_ONLY_HIGH,
|
HarmCategory.HARM_CATEGORY_DANGEROUS: block_level,
|
||||||
HarmCategory.HARM_CATEGORY_CIVIC_INTEGRITY: HarmBlockThreshold.BLOCK_ONLY_HIGH,
|
HarmCategory.HARM_CATEGORY_CIVIC_INTEGRITY: block_level,
|
||||||
}
|
}
|
||||||
|
|
||||||
self.llm = genai.GenerativeModel(
|
self.llm = genai.GenerativeModel(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue