forked from Mirror/ollama4j
		
	Compare commits
	
		
			13 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | 7dd556293f | ||
|   | ee50131ce4 | ||
|   | 2cd47dbfaa | ||
|   | e5296c1067 | ||
|   | 0f00f05e3d | ||
|   | 976a3b82e5 | ||
|   | ba26d620c4 | ||
|   | e45246a767 | ||
|   | 7336668f0c | ||
|   | 11701fb222 | ||
|   | b1ec12c4e9 | ||
|   | d0b0a0fc97 | ||
|   | 20774fca6b | 
							
								
								
									
										41
									
								
								.github/workflows/release-jar.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										41
									
								
								.github/workflows/release-jar.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,41 @@ | |||||||
|  | name: Release JAR | ||||||
|  |  | ||||||
|  | on: | ||||||
|  |   push: | ||||||
|  |     tags: | ||||||
|  |       - '**' | ||||||
|  |  | ||||||
|  | permissions: | ||||||
|  |   contents: read | ||||||
|  |   id-token: write | ||||||
|  |   packages: write | ||||||
|  |  | ||||||
|  | jobs: | ||||||
|  |   build: | ||||||
|  |  | ||||||
|  |     runs-on: ubuntu-latest | ||||||
|  |  | ||||||
|  |     permissions: | ||||||
|  |       contents: write | ||||||
|  |       pull-requests: write | ||||||
|  |       repository-projects: write | ||||||
|  |  | ||||||
|  |     steps: | ||||||
|  |       - uses: actions/checkout@v3 | ||||||
|  |       - name: Set up JDK 11 | ||||||
|  |         uses: actions/setup-java@v3 | ||||||
|  |         with: | ||||||
|  |           java-version: '11' | ||||||
|  |           distribution: 'temurin' | ||||||
|  |           server-id: github # Value of the distributionManagement/repository/id field of the pom.xml | ||||||
|  |           settings-path: ${{ github.workspace }} # location for the settings.xml file | ||||||
|  |  | ||||||
|  |       - name: Build with Maven | ||||||
|  |         run: mvn -B clean install package --file pom.xml | ||||||
|  |  | ||||||
|  |       - name: Release Assets | ||||||
|  |         uses: softprops/action-gh-release@v1 | ||||||
|  |         env: | ||||||
|  |           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||
|  |         with: | ||||||
|  |           files: target/*.jar | ||||||
							
								
								
									
										4
									
								
								pom.xml
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								pom.xml
									
									
									
									
									
								
							| @@ -4,7 +4,7 @@ | |||||||
|  |  | ||||||
|     <groupId>io.github.amithkoujalgi</groupId> |     <groupId>io.github.amithkoujalgi</groupId> | ||||||
|     <artifactId>ollama4j</artifactId> |     <artifactId>ollama4j</artifactId> | ||||||
|     <version>1.0.57</version> |     <version>1.0.61</version> | ||||||
|  |  | ||||||
|     <name>Ollama4j</name> |     <name>Ollama4j</name> | ||||||
|     <description>Java library for interacting with Ollama API.</description> |     <description>Java library for interacting with Ollama API.</description> | ||||||
| @@ -39,7 +39,7 @@ | |||||||
|         <connection>scm:git:git@github.com:amithkoujalgi/ollama4j.git</connection> |         <connection>scm:git:git@github.com:amithkoujalgi/ollama4j.git</connection> | ||||||
|         <developerConnection>scm:git:https://github.com/amithkoujalgi/ollama4j.git</developerConnection> |         <developerConnection>scm:git:https://github.com/amithkoujalgi/ollama4j.git</developerConnection> | ||||||
|         <url>https://github.com/amithkoujalgi/ollama4j</url> |         <url>https://github.com/amithkoujalgi/ollama4j</url> | ||||||
|         <tag>v1.0.57</tag> |         <tag>v1.0.61</tag> | ||||||
|     </scm> |     </scm> | ||||||
|  |  | ||||||
|     <build> |     <build> | ||||||
|   | |||||||
| @@ -8,57 +8,72 @@ package io.github.amithkoujalgi.ollama4j.core.types; | |||||||
|  */ |  */ | ||||||
| @SuppressWarnings("ALL") | @SuppressWarnings("ALL") | ||||||
| public class OllamaModelType { | public class OllamaModelType { | ||||||
|  |   public static final String GEMMA = "gemma"; | ||||||
|   public static final String LLAMA2 = "llama2"; |   public static final String LLAMA2 = "llama2"; | ||||||
|   public static final String MISTRAL = "mistral"; |   public static final String MISTRAL = "mistral"; | ||||||
|   public static final String LLAVA = "llava"; |  | ||||||
|   public static final String MIXTRAL = "mixtral"; |   public static final String MIXTRAL = "mixtral"; | ||||||
|   public static final String STARLING_LM = "starling-lm"; |   public static final String LLAVA = "llava"; | ||||||
|   public static final String NEURAL_CHAT = "neural-chat"; |   public static final String NEURAL_CHAT = "neural-chat"; | ||||||
|   public static final String CODELLAMA = "codellama"; |   public static final String CODELLAMA = "codellama"; | ||||||
|   public static final String LLAMA2_UNCENSORED = "llama2-uncensored"; |  | ||||||
|   public static final String DOLPHIN_MIXTRAL = "dolphin-mixtral"; |   public static final String DOLPHIN_MIXTRAL = "dolphin-mixtral"; | ||||||
|  |   public static final String MISTRAL_OPENORCA = "mistral-openorca"; | ||||||
|  |   public static final String LLAMA2_UNCENSORED = "llama2-uncensored"; | ||||||
|  |   public static final String PHI = "phi"; | ||||||
|   public static final String ORCA_MINI = "orca-mini"; |   public static final String ORCA_MINI = "orca-mini"; | ||||||
|  |   public static final String DEEPSEEK_CODER = "deepseek-coder"; | ||||||
|  |   public static final String DOLPHIN_MISTRAL = "dolphin-mistral"; | ||||||
|   public static final String VICUNA = "vicuna"; |   public static final String VICUNA = "vicuna"; | ||||||
|   public static final String WIZARD_VICUNA_UNCENSORED = "wizard-vicuna-uncensored"; |   public static final String WIZARD_VICUNA_UNCENSORED = "wizard-vicuna-uncensored"; | ||||||
|   public static final String PHIND_CODELLAMA = "phind-codellama"; |  | ||||||
|   public static final String PHI = "phi"; |  | ||||||
|   public static final String ZEPHYR = "zephyr"; |   public static final String ZEPHYR = "zephyr"; | ||||||
|  |   public static final String OPENHERMES = "openhermes"; | ||||||
|  |   public static final String QWEN = "qwen"; | ||||||
|   public static final String WIZARDCODER = "wizardcoder"; |   public static final String WIZARDCODER = "wizardcoder"; | ||||||
|   public static final String MISTRAL_OPENORCA = "mistral-openorca"; |  | ||||||
|   public static final String NOUS_HERMES = "nous-hermes"; |  | ||||||
|   public static final String DEEPSEEK_CODER = "deepseek-coder"; |  | ||||||
|   public static final String WIZARD_MATH = "wizard-math"; |  | ||||||
|   public static final String LLAMA2_CHINESE = "llama2-chinese"; |   public static final String LLAMA2_CHINESE = "llama2-chinese"; | ||||||
|   public static final String FALCON = "falcon"; |   public static final String TINYLLAMA = "tinyllama"; | ||||||
|   public static final String ORCA2 = "orca2"; |   public static final String PHIND_CODELLAMA = "phind-codellama"; | ||||||
|   public static final String STABLE_BELUGA = "stable-beluga"; |  | ||||||
|   public static final String CODEUP = "codeup"; |  | ||||||
|   public static final String EVERYTHINGLM = "everythinglm"; |  | ||||||
|   public static final String MEDLLAMA2 = "medllama2"; |  | ||||||
|   public static final String WIZARDLM_UNCENSORED = "wizardlm-uncensored"; |  | ||||||
|   public static final String STARCODER = "starcoder"; |  | ||||||
|   public static final String DOLPHIN22_MISTRAL = "dolphin2.2-mistral"; |  | ||||||
|   public static final String OPENCHAT = "openchat"; |   public static final String OPENCHAT = "openchat"; | ||||||
|   public static final String WIZARD_VICUNA = "wizard-vicuna"; |   public static final String ORCA2 = "orca2"; | ||||||
|   public static final String OPENHERMES25_MISTRAL = "openhermes2.5-mistral"; |   public static final String FALCON = "falcon"; | ||||||
|   public static final String OPEN_ORCA_PLATYPUS2 = "open-orca-platypus2"; |   public static final String WIZARD_MATH = "wizard-math"; | ||||||
|  |   public static final String TINYDOLPHIN = "tinydolphin"; | ||||||
|  |   public static final String NOUS_HERMES = "nous-hermes"; | ||||||
|   public static final String YI = "yi"; |   public static final String YI = "yi"; | ||||||
|   public static final String YARN_MISTRAL = "yarn-mistral"; |   public static final String DOLPHIN_PHI = "dolphin-phi"; | ||||||
|   public static final String SAMANTHA_MISTRAL = "samantha-mistral"; |   public static final String STARLING_LM = "starling-lm"; | ||||||
|   public static final String SQLCODER = "sqlcoder"; |   public static final String STARCODER = "starcoder"; | ||||||
|   public static final String YARN_LLAMA2 = "yarn-llama2"; |   public static final String CODEUP = "codeup"; | ||||||
|   public static final String MEDITRON = "meditron"; |   public static final String MEDLLAMA2 = "medllama2"; | ||||||
|   public static final String STABLELM_ZEPHYR = "stablelm-zephyr"; |   public static final String STABLE_CODE = "stable-code"; | ||||||
|   public static final String OPENHERMES2_MISTRAL = "openhermes2-mistral"; |   public static final String WIZARDLM_UNCENSORED = "wizardlm-uncensored"; | ||||||
|   public static final String DEEPSEEK_LLM = "deepseek-llm"; |  | ||||||
|   public static final String MISTRALLITE = "mistrallite"; |  | ||||||
|   public static final String DOLPHIN21_MISTRAL = "dolphin2.1-mistral"; |  | ||||||
|   public static final String WIZARDLM = "wizardlm"; |  | ||||||
|   public static final String CODEBOOGA = "codebooga"; |  | ||||||
|   public static final String MAGICODER = "magicoder"; |  | ||||||
|   public static final String GOLIATH = "goliath"; |  | ||||||
|   public static final String NEXUSRAVEN = "nexusraven"; |  | ||||||
|   public static final String ALFRED = "alfred"; |  | ||||||
|   public static final String XWINLM = "xwinlm"; |  | ||||||
|   public static final String BAKLLAVA = "bakllava"; |   public static final String BAKLLAVA = "bakllava"; | ||||||
|  |   public static final String EVERYTHINGLM = "everythinglm"; | ||||||
|  |   public static final String SOLAR = "solar"; | ||||||
|  |   public static final String STABLE_BELUGA = "stable-beluga"; | ||||||
|  |   public static final String SQLCODER = "sqlcoder"; | ||||||
|  |   public static final String YARN_MISTRAL = "yarn-mistral"; | ||||||
|  |   public static final String NOUS_HERMES2_MIXTRAL = "nous-hermes2-mixtral"; | ||||||
|  |   public static final String SAMANTHA_MISTRAL = "samantha-mistral"; | ||||||
|  |   public static final String STABLELM_ZEPHYR = "stablelm-zephyr"; | ||||||
|  |   public static final String MEDITRON = "meditron"; | ||||||
|  |   public static final String WIZARD_VICUNA = "wizard-vicuna"; | ||||||
|  |   public static final String STABLELM2 = "stablelm2"; | ||||||
|  |   public static final String MAGICODER = "magicoder"; | ||||||
|  |   public static final String YARN_LLAMA2 = "yarn-llama2"; | ||||||
|  |   public static final String NOUS_HERMES2 = "nous-hermes2"; | ||||||
|  |   public static final String DEEPSEEK_LLM = "deepseek-llm"; | ||||||
|  |   public static final String LLAMA_PRO = "llama-pro"; | ||||||
|  |   public static final String OPEN_ORCA_PLATYPUS2 = "open-orca-platypus2"; | ||||||
|  |   public static final String CODEBOOGA = "codebooga"; | ||||||
|  |   public static final String MISTRALLITE = "mistrallite"; | ||||||
|  |   public static final String NEXUSRAVEN = "nexusraven"; | ||||||
|  |   public static final String GOLIATH = "goliath"; | ||||||
|  |   public static final String NOMIC_EMBED_TEXT = "nomic-embed-text"; | ||||||
|  |   public static final String NOTUX = "notux"; | ||||||
|  |   public static final String ALFRED = "alfred"; | ||||||
|  |   public static final String MEGADOLPHIN = "megadolphin"; | ||||||
|  |   public static final String WIZARDLM = "wizardlm"; | ||||||
|  |   public static final String XWINLM = "xwinlm"; | ||||||
|  |   public static final String NOTUS = "notus"; | ||||||
|  |   public static final String DUCKDB_NSQL = "duckdb-nsql"; | ||||||
|  |   public static final String ALL_MINILM = "all-minilm"; | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user