forked from Mirror/ollama4j
added Javadocs
This commit is contained in:
parent
c379e94571
commit
384c2cf041
@ -247,9 +247,9 @@ public class OllamaAPI {
|
|||||||
* Ask a question to a model running on Ollama server and get a callback handle that can be used to check for status and get the response from the model later.
|
* Ask a question to a model running on Ollama server and get a callback handle that can be used to check for status and get the response from the model later.
|
||||||
* This would be a async/non-blocking call.
|
* This would be a async/non-blocking call.
|
||||||
*
|
*
|
||||||
* @param ollamaModelType the ollama model type
|
* @param ollamaModelType the ollama model to ask the question to
|
||||||
* @param promptText the prompt text
|
* @param promptText the prompt/question text
|
||||||
* @return the ollama async result callback
|
* @return the ollama async result callback handle
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
*/
|
*/
|
||||||
public OllamaAsyncResultCallback askAsync(String ollamaModelType, String promptText) throws IOException {
|
public OllamaAsyncResultCallback askAsync(String ollamaModelType, String promptText) throws IOException {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user