Skip to content

Commit

Permalink
These are git diffs showing the creation and modification of `.aiexcl…
Browse files Browse the repository at this point in the history
…ude` files in different directories of a project. Here's a breakdown:

**1. springboot/api/.aiexclude:**

* **Action:** A new file `.aiexclude` is created in the `springboot/api` directory.
* **Content:** The file contains a single line: `e3p0.yaml`. This indicates that the file `e3p0.yaml` should be excluded.

**2. .aiexclude:**

* **Action:** An existing `.aiexclude` file in the root directory is modified.
* **Change:** The line `*.hprof` is added (or possibly just remains unchanged, the `+` in diffs doesn't always mean a line is *added*). This indicates that all files with the `.hprof` extension should be excluded.

**3. springboot/.aiexclude:**

* **Action:** A new file `.aiexclude` is created in the `springboot` directory.
* **Content:** The file contains a list of files and directories to be excluded:
    * `spring-cli-standalone`
    * `spring-cli-standalone-0.9.0-SNAPSHOT-linux.x86_64.zip`
    * `README.adoc`
    * `LICENSE`
    * `.gradle`
    * `.idea`
    * `.kotlin`

**Purpose of .aiexclude:**

The `.aiexclude` file is used by Google Cloud AI Platform to specify files and directories that should be excluded when uploading code for training or deploying models. This helps to:

* Reduce the size of the uploaded code by excluding unnecessary files.
* Prevent potential conflicts by excluding files that are not required for the AI Platform environment.

**In summary,** these changes suggest that the project is being configured for use with Google Cloud AI Platform, and specific files and directories are being excluded from the upload process.
  • Loading branch information
cheroliv committed Sep 25, 2024
1 parent b0eb727 commit 288972f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 20 deletions.
23 changes: 8 additions & 15 deletions .aiexclude
Original file line number Diff line number Diff line change
Expand Up @@ -6,38 +6,31 @@ compose-samples
*.ipr
*.iws
*.iml
# *.odt

# Ignore Gradle project-specific cache directory
.gradle

# Ignore Gradle build output directory
build

# android props
local.properties

# Visual studio code
.vs

# binaries
bin

# maven destination
target

# build destination
output

# extra private
workspace.yml
e3p0.yaml
managed-jbake-context.yml
private.properties

# windows personalisation
desktop.ini
training-institut-2598582b592a.json
.next

*.hprof


.gitignore
workspace.yml
e3p0.yaml
managed-jbake-context.yml
private.properties
training-institut-2598582b592a.json
9 changes: 6 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import org.gradle.api.tasks.wrapper.Wrapper.DistributionType.ALL
import school.ai.AssistantPlugin
import school.forms.FormPlugin
import school.frontend.SchoolPlugin
import school.workspace.WorkspaceUtils.purchaseArtifact
import school.jbake.JBakeGhPagesPlugin

plugins { idea }
apply<school.frontend.SchoolPlugin>()
apply<school.forms.FormPlugin>()
apply<SchoolPlugin>()
apply<FormPlugin>()
apply<JBakeGhPagesPlugin>()
apply<school.ai.AssistantPlugin>()
apply<AssistantPlugin>()

purchaseArtifact()

Expand Down
4 changes: 2 additions & 2 deletions buildSrc/src/main/kotlin/school/ai/AssistantPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class AssistantPlugin : Plugin<Project> {
group = "school-ai"
description = "Display the ollama phi3.5 chatgpt prompt request."
doFirst {
createOllamaChatModel(model = "phi3.5")
createOllamaChatModel(model = "phi3.5:latest")
.run { generate(userMessage).let(::println) }
}
}
Expand All @@ -60,7 +60,7 @@ class AssistantPlugin : Plugin<Project> {
description = "Display the ollama phi3.5 chatgpt stream prompt request."
doFirst {
runBlocking {
createOllamaStreamingChatModel("phi3.5").run {
createOllamaStreamingChatModel("phi3.5:latest").run {
when (val answer = generateStreamingResponse(this, userMessage)) {
is Right ->
"Complete response received: \n${answer.value.content().text()}".run(::println)
Expand Down

0 comments on commit 288972f

Please sign in to comment.