Skip to content

Commit

Permalink
add documentation for previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rauner committed Feb 15, 2024
1 parent ceefbbe commit 3b6d68f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/assistant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ impl Assistant {
}
Ok(())
}
/// this overwrites the assistant's instructions with the contents of the file
pub async fn instructions_from_file(&mut self) -> Result<(), AssistantError> {
// Check if the instructions_file_path is set
let file_path = match &self.instructions_file_path {
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async fn main() {
"gpt-4-turbo-preview",
"On buycycle.com, users can buy and sell pre-owned bicycles.
Help the users with how the website works, use the faq.html for referral links.",
&Some("data/prompt.txt".to_string()),
&Some("data/prompt.txt".to_string()), //overwrites instructions with file content
&files.file_ids,
)
.await
Expand Down

0 comments on commit 3b6d68f

Please sign in to comment.