mirror of
https://github.com/perstarkse/minne.git
synced 2026-04-26 10:48:37 +02:00
Merge branch 'custom_llm_base'
fix: updated readme and corrected server and worker to updates added migration fix: openai url typo & displaying models chore: tidying up
This commit is contained in:
@@ -12,12 +12,18 @@ pub struct AppConfig {
|
||||
#[serde(default = "default_data_dir")]
|
||||
pub data_dir: String,
|
||||
pub http_port: u16,
|
||||
#[serde(default = "default_base_url")]
|
||||
pub openai_base_url: String,
|
||||
}
|
||||
|
||||
fn default_data_dir() -> String {
|
||||
"./data".to_string()
|
||||
}
|
||||
|
||||
fn default_base_url() -> String {
|
||||
"https://api.openai.com/v1".to_string()
|
||||
}
|
||||
|
||||
pub fn get_config() -> Result<AppConfig, ConfigError> {
|
||||
let config = Config::builder()
|
||||
.add_source(File::with_name("config").required(false))
|
||||
|
||||
Reference in New Issue
Block a user