Skip to content

feat: add Friendli serverless models to auto price/context sync - #34703

Closed
Lee-Si-Yoon wants to merge 1 commit into
BerriAI:litellm_internal_stagingfrom
Lee-Si-Yoon:friendli-sync-into-auto-update
Closed

Lee-Si-Yoon wants to merge 1 commit into
BerriAI:litellm_internal_stagingfrom
Lee-Si-Yoon:friendli-sync-into-auto-update

Conversation

@Lee-Si-Yoon

Copy link
Copy Markdown
Contributor

Summary

Adds transform_friendli_data() to auto_update_price_and_context_window_file.py and registers https://api.friendli.ai/serverless/v1/models as a sync source, so Friendli serverless models are picked up by the existing weekly cron alongside OpenRouter and Vercel AI Gateway.

Also adds the current 7 Friendli serverless models to model_prices_and_context_window_backup.json:

  • friendliai/Qwen/Qwen3-235B-A22B-Instruct-2507
  • friendliai/LGAI-EXAONE/K-EXAONE-236B-A23B
  • friendliai/MiniMaxAI/MiniMax-M2.5
  • friendliai/deepseek-ai/DeepSeek-V3.2
  • friendliai/zai-org/GLM-5.1
  • friendliai/google/gemma-4-31B-it
  • friendliai/zai-org/GLM-5.2

Field mapping

Friendli API litellm backup JSON
pricing.input input_cost_per_token
pricing.output output_cost_per_token
pricing.input_cache_read cache_read_input_token_cost
pricing.cache_write cache_creation_input_token_cost
context_length max_input_tokens
max_completion_tokens max_output_tokens, max_tokens
functionality.tool_call supports_function_calling
functionality.parallel_tool_call supports_parallel_function_calling
functionality.structured_output supports_response_schema
reasoning supports_reasoning
deprecation_date deprecation_date
image/video in input_modalities supports_vision

supports_tool_choice / supports_system_messages are only set when the API actually returns the field, so absent fields do not clobber existing true values.

Test plan

  • python .github/workflows/auto_update_price_and_context_window_file.py runs without error (requires aiohttp)
  • JSON diff matches the 7 new entries

Adds transform_friendli_data() to auto_update_price_and_context_window_file.py
and registers https://api.friendli.ai/serverless/v1/models as a sync source.

Also adds the current 7 Friendli serverless models to the backup JSON:
- friendliai/Qwen/Qwen3-235B-A22B-Instruct-2507
- friendliai/LGAI-EXAONE/K-EXAONE-236B-A23B
- friendliai/MiniMaxAI/MiniMax-M2.5
- friendliai/deepseek-ai/DeepSeek-V3.2
- friendliai/zai-org/GLM-5.1
- friendliai/google/gemma-4-31B-it
- friendliai/zai-org/GLM-5.2
@CLAassistant

CLAassistant commented Jul 26, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@codecov

codecov Bot commented Jul 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@codspeed

codspeed Bot commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 31 untouched benchmarks


Comparing Lee-Si-Yoon:friendli-sync-into-auto-update (f13325a) with litellm_internal_staging (2412326)

Open in CodSpeed

@Lee-Si-Yoon Lee-Si-Yoon closed this Aug 5, 2026
@Lee-Si-Yoon
Lee-Si-Yoon deleted the friendli-sync-into-auto-update branch August 5, 2026 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants