mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-21 00:21:49 +00:00
Merge pull request #41860 from BerriAI/litellm_router_settings_doc_table_parse
test(docs): read only the first column of the router_settings reference table
This commit is contained in:
commit
57377c9249
1 changed files with 1 additions and 3 deletions
|
|
@ -51,9 +51,7 @@ try:
|
|||
if general_settings_section:
|
||||
# Extract the table rows, which contain the documented keys
|
||||
table_content = general_settings_section.group(1)
|
||||
doc_key_pattern = re.compile(
|
||||
r"\|\s*([^\|]+?)\s*\|"
|
||||
) # Capture the key from each row of the table
|
||||
doc_key_pattern = re.compile(r"^\|\s*([^\|]+?)\s*\|", re.MULTILINE)
|
||||
documented_keys.update(doc_key_pattern.findall(table_content))
|
||||
except Exception as e:
|
||||
raise Exception(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue