mirror of
https://github.com/perstarkse/minne.git
synced 2026-04-21 08:21:25 +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:
@@ -26,7 +26,11 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
.await?,
|
||||
);
|
||||
|
||||
let openai_client = Arc::new(async_openai::Client::new());
|
||||
let openai_client = Arc::new(async_openai::Client::with_config(
|
||||
async_openai::config::OpenAIConfig::new()
|
||||
.with_api_key(&config.openai_api_key)
|
||||
.with_api_base(&config.openai_base_url),
|
||||
));
|
||||
|
||||
let ingestion_pipeline =
|
||||
Arc::new(IngestionPipeline::new(db.clone(), openai_client.clone(), config).await?);
|
||||
|
||||
Reference in New Issue
Block a user