update dependences

This commit is contained in:
jhqxxx
2025-10-27 10:55:40 +08:00
parent 324805fc5a
commit 1dcccf5aeb
13 changed files with 53 additions and 52 deletions
+4 -4
View File
@@ -3,10 +3,7 @@ pub mod img_utils;
pub mod tensor_utils;
pub mod video_utils;
use anyhow::Result;
use candle_core::{DType, Device};
use candle_transformers::generation::{LogitsProcessor, Sampling};
use openai_dive::v1::resources::{
use aha_openai_dive::v1::resources::{
chat::{
ChatCompletionChoice, ChatCompletionChunkChoice, ChatCompletionChunkResponse,
ChatCompletionResponse, ChatMessage, ChatMessageContent, DeltaChatMessage, DeltaFunction,
@@ -14,6 +11,9 @@ use openai_dive::v1::resources::{
},
shared::FinishReason,
};
use anyhow::Result;
use candle_core::{DType, Device};
use candle_transformers::generation::{LogitsProcessor, Sampling};
pub fn get_device(device: Option<&Device>) -> Device {
match device {