Skip to content

Commit 78f4d27

Browse files
authored
Merge pull request #35 from jmont-dev/cleanup
Adding note for context deprecation in generate endpoint.
2 parents d47ccf9 + 59a30bf commit 78f4d27

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ This provides the most customization of the request. Users should take care to e
417417
### Handling Context
418418
Context from previous generate requests can be used by including a past `ollama::response` with `generate`:
419419
420+
**Note:** The Context parameter has been [deprecated](https://github.com/ollama/ollama/pull/7878) in newer versions of Ollama. It is recommended to use the `chat` endpoint for maintaining context over time.
420421
```C++
421422
std::string model = "llama3.1:8b";
422423
ollama::response context = ollama::generate(model, "Why is the sky blue?");

0 commit comments

Comments
 (0)