Skip to content

Commit e044243

Browse files
committed
WIP
1 parent 7d7dbf1 commit e044243

File tree

8 files changed

+358
-2038
lines changed

8 files changed

+358
-2038
lines changed

llms_wrapper/config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ def update_llm_config(config: dict):
159159
"llm": llm,
160160
}
161161
else:
162+
if "/" not in llm["llm"]:
163+
raise ValueError(f"Error: LLM entry in config file must be in the format 'provider/model'")
162164
provider, model = llm["llm"].split("/", 1)
163165
provider_config = config.get("providers", {}).get(provider, {})
164166
for key in provider_config:

0 commit comments

Comments
 (0)