We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 392904a commit 85b880cCopy full SHA for 85b880c
oneping/native/google.py
@@ -43,8 +43,8 @@ def convert_history(history):
43
for message in history
44
]
45
46
-def make_config(system=DEFAULT_SYSTEM, max_tokens=None):
47
- return GenerateContentConfig(systemInstruction=system, maxOutputTokens=max_tokens)
+def make_config(system=DEFAULT_SYSTEM, max_tokens=None, **kwargs):
+ return GenerateContentConfig(systemInstruction=system, maxOutputTokens=max_tokens, **kwargs)
48
49
def make_chat(client, model=GOOGLE_MODEL, history=None, **kwargs):
50
config = make_config(**kwargs)
0 commit comments