Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/examples/japanese_extraction.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ for entity in result.extractions:
if entity.char_interval:
start, end = entity.char_interval.start_pos, entity.char_interval.end_pos
position_info = f" (pos: {start}-{end})"

print(f"• {entity.extraction_class}: {entity.extraction_text}{position_info}")

# Expected Output:
Expand Down
8 changes: 7 additions & 1 deletion langextract/providers/gemini.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,13 @@ def infer(
if key in merged_kwargs:
config[key] = merged_kwargs[key]

handled_keys = {'temperature', 'max_output_tokens', 'top_p', 'top_k'}
handled_keys = {
'temperature',
'max_output_tokens',
'top_p',
'top_k',
'thinking_config',
}
for key, value in merged_kwargs.items():
if (
key not in handled_keys
Expand Down
Loading