{"repo":"Haoming02/ollama-unity","free":true,"listed":false,"github":"https://github.com/Haoming02/ollama-unity","clone":"git clone https://github.com/Haoming02/ollama-unity.git","description":"Ollama API bindings for Unity","language":"C#","stars":66,"topics":["ollama","ollama-api","unity"],"license":"MIT","category":"game-templates","readme_excerpt":"for A series of C# functions wrapping the ollama APIs , mainly for the UnityEngine Prerequisite Both the developer and the user 's systems need to have a working ollama setup already: 1. Download and Install ollama 2. Pull a model of choice from the Library - Recommend gemma3:4b for general conversation - Recommend gemma3:1b for device with limited memory - Recommend deepseek-r1:7b if \"reasoning\" is needed - Recommend nomic-embed-text for generating embeddings (vectors) - Recommend qwen3:4b for tool calling In Unity , you need the Newtonsoft.Json package: 1. Unity Editor 2. Window 3. Package Manager 4. Add package by name 5. Name: 6. Add Then, simply download and install the .unitypackage from Releases Features The following functions are available under the Ollama static class; all functions are asynchronous - List() - Return an array of Model , representing all locally available models - The Model class follows the official specs [!TIP] You can use the families attribute to determine if a model is multimodal (see \\#2608 ) Generate - Generate() - The most basic function that returns a response when given a model and a prompt - You can also pass a Texture2D when using a model with vision capability - GenerateStream() - The streaming variant that returns each word as soon as it's ready - Requires a callback to handle the chunks - GenerateJson() - Return the response in the specified class / struct format [!IMPORTANT] You need to manually tell the model to use a JSON format in ","default_branch":null,"files":null,"tree":[],"storefront":"/r/Haoming02","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Haoming02/ollama-unity/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}