| 2705 | use crate::models::{ModelLimit, ModelModalities, ModelProvider}; |
| 2706 | |
| 2707 | fn provider_model(model_id: &str) -> ProviderModel { |
| 2708 | ProviderModel { |
| 2709 | id: model_id.to_string(), |
| 2710 | provider_id: "test".to_string(), |
| 2711 | name: model_id.to_string(), |
| 2712 | api: ProviderModelApi { |
| 2713 | id: model_id.to_string(), |
| 2714 | url: "https://example.com".to_string(), |
| 2715 | npm: "@ai-sdk/openai".to_string(), |
| 2716 | }, |
| 2717 | family: None, |
| 2718 | capabilities: ModelCapabilities { |
| 2719 | temperature: true, |
| 2720 | reasoning: true, |
| 2721 | attachment: false, |
| 2722 | toolcall: true, |
| 2723 | input: ModalitySet { |
| 2724 | text: true, |
| 2725 | audio: false, |
| 2726 | image: false, |
| 2727 | video: false, |
| 2728 | pdf: false, |
| 2729 | }, |
| 2730 | output: ModalitySet { |
| 2731 | text: true, |
| 2732 | audio: false, |
| 2733 | image: false, |
| 2734 | video: false, |
| 2735 | pdf: false, |
| 2736 | }, |
| 2737 | interleaved: InterleavedConfig::Bool(false), |
| 2738 | }, |
| 2739 | cost: ProviderModelCost { |
| 2740 | input: 0.0, |
| 2741 | output: 0.0, |
| 2742 | cache: ModelCostCache { |
| 2743 | read: 0.0, |
| 2744 | write: 0.0, |
| 2745 | }, |
| 2746 | experimental_over_200k: None, |
| 2747 | }, |
| 2748 | limit: ProviderModelLimit { |
| 2749 | context: 128_000, |
| 2750 | input: None, |
| 2751 | output: 8_192, |
| 2752 | }, |
| 2753 | status: "active".to_string(), |
| 2754 | options: HashMap::new(), |
| 2755 | headers: HashMap::new(), |
| 2756 | release_date: "2026-01-01".to_string(), |
| 2757 | variants: None, |
| 2758 | } |
| 2759 | } |
| 2760 | |
| 2761 | fn model_info(model_id: &str) -> ModelInfo { |
| 2762 | ModelInfo { |