Skip to content

Commit

Permalink
Merge pull request #43 from Vebnik/issue-pub-GenerationContext
Browse files Browse the repository at this point in the history
make GenerationContext with pub field
  • Loading branch information
pepperoni21 authored Apr 17, 2024
2 parents c5bee1d + effa969 commit f6eacde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generation/completion/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ impl Ollama {

/// An encoding of a conversation returned by Ollama after a completion request, this can be sent in a new request to keep a conversational memory.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct GenerationContext(Vec<i32>);
pub struct GenerationContext(pub Vec<i32>);

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct GenerationResponse {
Expand Down

0 comments on commit f6eacde

Please sign in to comment.