Skip to content

Commit 85b880c

Browse files
committed
pass kwargs in native google
1 parent 392904a commit 85b880c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

oneping/native/google.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ def convert_history(history):
4343
for message in history
4444
]
4545

46-
def make_config(system=DEFAULT_SYSTEM, max_tokens=None):
47-
return GenerateContentConfig(systemInstruction=system, maxOutputTokens=max_tokens)
46+
def make_config(system=DEFAULT_SYSTEM, max_tokens=None, **kwargs):
47+
return GenerateContentConfig(systemInstruction=system, maxOutputTokens=max_tokens, **kwargs)
4848

4949
def make_chat(client, model=GOOGLE_MODEL, history=None, **kwargs):
5050
config = make_config(**kwargs)

0 commit comments

Comments
 (0)