-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/bots prompt multi model #66
Conversation
let req = { create_text_request(&info.read(), bot_id) }; | ||
let req = create_text_request(&info.read(), bot_id); | ||
|
||
println!("request content: {}", content); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
debug code of println?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for MingGe debug send message with context is or right
.msgs() | ||
.iter() | ||
.rev() | ||
.skip(2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the msg iter can be pass from the caller, skip(2) is odd
@@ -183,4 +192,28 @@ pub mod launch { | |||
.write_all(content.as_bytes()) | |||
.expect("can't write bot.json"); | |||
} | |||
|
|||
pub fn copy_static_files_to_user_data() { | |||
let mut src = PathBuf::from(env!("CARGO_MANIFEST_DIR")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is CARGO_MANIFEST_DIR valid after pack to install package
} else { | ||
0 | ||
}; | ||
let last_idx = (channels.len() - 1).min(0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
len() is unsize then len() - 1 may overflow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and min => max ?
No description provided.