2024-09-12 13:44:06 +03:00
|
|
|
use super::openai_compat::Config;
|
|
|
|
|
|
|
|
|
|
pub fn default_config() -> Config {
|
|
|
|
|
let mut config = Config {
|
|
|
|
|
base_url: "https://openrouter.ai/api/v1".to_owned(),
|
|
|
|
|
|
|
|
|
|
text_to_speech: None,
|
|
|
|
|
image_generation: None,
|
|
|
|
|
speech_to_text: None,
|
|
|
|
|
|
|
|
|
|
..Default::default()
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
if let Some(ref mut config) = config.text_generation.as_mut() {
|
|
|
|
|
config.model_id = "mattshumer/reflection-70b:free".to_owned();
|
|
|
|
|
config.max_context_tokens = 8192;
|
2024-10-03 10:36:01 +03:00
|
|
|
config.max_response_tokens = Some(2048);
|
2024-09-12 13:44:06 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
config
|
|
|
|
|
}
|