Skip to content

Commit

Permalink
refactor: cargo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
m1sk9 committed Oct 23, 2023
1 parent f8312bd commit 41d3ed8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/adapters/chatgpt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ use async_openai::types::CreateChatCompletionRequestArgs;
use async_openai::Client;
use std::time::Duration;
use tokio::time::timeout;
use tracing::info;
use tracing::log::debug;



pub static SYSTEM_CONTEXT: &str = "回答時は以下のルールに従うこと.\n- 1900文字以内に収めること。";
static TIMEOUT_DURATION: Duration = Duration::from_secs(180);
Expand Down
2 changes: 1 addition & 1 deletion src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use async_openai::types::{ChatCompletionRequestMessage, ChatCompletionRequestMes
use once_cell::sync::OnceCell;
use serenity::async_trait;
use serenity::client::Context;
use serenity::http::{CacheHttp, Http, Typing};
use serenity::http::{Http, Typing};
use serenity::model::channel::{Message, MessageType};
use serenity::model::gateway::Ready;
use serenity::model::id::{ChannelId, GuildId, RoleId};
Expand Down
4 changes: 2 additions & 2 deletions src/model/chatgpt.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::model::discord::DiscordMessageModel;
use async_openai::types::{ChatCompletionRequestMessage, ChatCompletionRequestMessageArgs};

use async_openai::types::{ChatCompletionRequestMessage};
use typed_builder::TypedBuilder;

#[derive(TypedBuilder)]
Expand Down

0 comments on commit 41d3ed8

Please sign in to comment.