Skip to content

Commit

Permalink
Update context when generating a response.
Browse files Browse the repository at this point in the history
  • Loading branch information
rhx committed May 25, 2024
1 parent d3155bc commit 68cf719
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/LangChain/llms/Ollama.swift
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ public class Ollama: LLM {
return LLMResult()
}
let llmResponse = try JSONDecoder().decode(GenerateResponse.self, from: data)
context = llmResponse.context
return LLMResult(llm_output: llmResponse.response)
}

Expand Down

0 comments on commit 68cf719

Please sign in to comment.