mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-04 11:45:00 +00:00
feat: Print parsed model parameters in fetch_openrouter_model_info() method
This commit is contained in:
parent
c1b2ff20de
commit
4600dbcda5
1 changed files with 3 additions and 1 deletions
|
@ -260,7 +260,9 @@ class ModelInfoManager:
|
||||||
output_cost_match = re.search(r"\$\s*0\s*/M output tokens", text, re.IGNORECASE)
|
output_cost_match = re.search(r"\$\s*0\s*/M output tokens", text, re.IGNORECASE)
|
||||||
input_cost = 0 if input_cost_match else None
|
input_cost = 0 if input_cost_match else None
|
||||||
output_cost = 0 if output_cost_match else None
|
output_cost = 0 if output_cost_match else None
|
||||||
return {"max_input_tokens": context_size, "input_cost": input_cost, "output_cost": output_cost}
|
params = {"max_input_tokens": context_size, "input_cost": input_cost, "output_cost": output_cost}
|
||||||
|
print("Parsed model parameters:", params)
|
||||||
|
return params
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("Error fetching openrouter info:", str(e))
|
print("Error fetching openrouter info:", str(e))
|
||||||
return {}
|
return {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue