From 2cc18286a355e174b61b1a2d301273b4e3b403cf Mon Sep 17 00:00:00 2001 From: Carlos Tosta Date: Tue, 14 Feb 2023 15:07:54 -0300 Subject: [PATCH] fix: replace dotenv with dotenvy - resolves #10 --- Cargo.toml | 4 ++-- examples/clap/completion.rs | 2 +- examples/clap/edits.rs | 2 +- examples/clap/embeddings.rs | 2 +- examples/clap/img2img.rs | 2 +- examples/clap/text2img.rs | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d1eea26..1d98271 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -78,5 +78,5 @@ keywords = ["openai", "api", "client", "clap"] [dev-dependencies] clap = { version = "4.0.29", features = ["derive"] } -dotenv = "0.15.0" -mockito = "0.23.2" \ No newline at end of file +dotenvy = "0.15.6" +mockito = "0.23.2" diff --git a/examples/clap/completion.rs b/examples/clap/completion.rs index 6a7f560..4e45f58 100644 --- a/examples/clap/completion.rs +++ b/examples/clap/completion.rs @@ -1,5 +1,5 @@ use clap::Parser; -use dotenv::dotenv; +use dotenvy::dotenv; use sortium_ai_client::openai::completions::{CompletionsClient, CompletionsInput}; use std::env; diff --git a/examples/clap/edits.rs b/examples/clap/edits.rs index 9983fad..d506c75 100644 --- a/examples/clap/edits.rs +++ b/examples/clap/edits.rs @@ -1,5 +1,5 @@ use clap::Parser; -use dotenv::dotenv; +use dotenvy::dotenv; use sortium_ai_client::openai::edits::{EditClient, EditInput}; use std::env; diff --git a/examples/clap/embeddings.rs b/examples/clap/embeddings.rs index 5417614..ebcbdee 100644 --- a/examples/clap/embeddings.rs +++ b/examples/clap/embeddings.rs @@ -1,5 +1,5 @@ use clap::Parser; -use dotenv::dotenv; +use dotenvy::dotenv; use sortium_ai_client::openai::embeddings::{EmbeddingsClient, EmbeddingsInput}; use std::env; diff --git a/examples/clap/img2img.rs b/examples/clap/img2img.rs index 3cb692c..e1ad89f 100644 --- a/examples/clap/img2img.rs +++ b/examples/clap/img2img.rs @@ -1,5 +1,5 @@ use clap::Parser; -use dotenv::dotenv; +use dotenvy::dotenv; use sortium_ai_client::stable_diffusion::{ image::{base64_to_png, load_image_from_disk, save_image_to_disk}, StableDiffusionClient, StableDiffusionParameters, diff --git a/examples/clap/text2img.rs b/examples/clap/text2img.rs index dc522dd..3c4c294 100644 --- a/examples/clap/text2img.rs +++ b/examples/clap/text2img.rs @@ -1,5 +1,5 @@ use clap::Parser; -use dotenv::dotenv; +use dotenvy::dotenv; use sortium_ai_client::stable_diffusion::{ image::{base64_to_png, save_image_to_disk}, StableDiffusionClient, StableDiffusionParameters,