mirror of
				https://github.com/amithkoujalgi/ollama4j.git
				synced 2025-11-04 02:20:50 +01:00 
			
		
		
		
	Compare commits
	
		
			12 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					e88711a017 | ||
| 
						 | 
					32169ded18 | ||
| 
						 | 
					4b2d566fd9 | ||
| 
						 | 
					fb4b7a7ce5 | ||
| 
						 | 
					18f27775b0 | ||
| 
						 | 
					cb462ad05a | ||
| 
						 | 
					1eec22ca1a | ||
| 
						 | 
					c1f3c51f88 | ||
| 
						 | 
					7dd556293f | ||
| 
						 | 
					ee50131ce4 | ||
| 
						 | 
					2cd47dbfaa | ||
| 
						 | 
					e5296c1067 | 
							
								
								
									
										42
									
								
								.github/workflows/release-jar.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										42
									
								
								.github/workflows/release-jar.yml
									
									
									
									
										vendored
									
									
								
							@@ -1,42 +0,0 @@
 | 
				
			|||||||
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 }}
 | 
					 | 
				
			||||||
        if: startsWith(github.ref, 'refs/tags/')
 | 
					 | 
				
			||||||
        with:
 | 
					 | 
				
			||||||
          files: target/*.jar
 | 
					 | 
				
			||||||
@@ -42,7 +42,7 @@ public class AskPhi {
 | 
				
			|||||||
                        .addSeparator()
 | 
					                        .addSeparator()
 | 
				
			||||||
                        .add("How do I read a file in Go and print its contents to stdout?");
 | 
					                        .add("How do I read a file in Go and print its contents to stdout?");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        OllamaResult response = ollamaAPI.generate(model, promptBuilder.build());
 | 
					        OllamaResult response = ollamaAPI.generate(model, promptBuilder.build(), new OptionsBuilder().build());
 | 
				
			||||||
        System.out.println(response.getResponse());
 | 
					        System.out.println(response.getResponse());
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										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.60</version>
 | 
					    <version>1.0.63</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.60</tag>
 | 
					        <tag>v1.0.63</tag>
 | 
				
			||||||
    </scm>
 | 
					    </scm>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <build>
 | 
					    <build>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user