Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions ballerina/Ballerina.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@ authors = ["Ballerina"]
distribution = "2201.12.0"
keywords = ["AI", "Agent", "Ollama", "Model", "Provider"]
license = ["Apache-2.0"]
icon="icon.png"
name = "ai.ollama"
org = "ballerinax"
repository = "https://github.com/ballerina-platform/module-ballerinax-ai.ollama"
version = "1.0.1"
version = "1.1.0"

[platform.java21]
graalvmCompatible = true

[[platform.java21.dependency]]
groupId = "io.ballerina.lib"
artifactId = "ai.ollama-native"
version = "1.0.1"
path = "../native/build/libs/ai.ollama-native-1.0.1-SNAPSHOT.jar"
version = "1.1.0"
path = "../native/build/libs/ai.ollama-native-1.1.0-SNAPSHOT.jar"
2 changes: 1 addition & 1 deletion ballerina/CompilerPlugin.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ id = "ai-ollama-compiler-plugin"
class = "io.ballerina.lib.ai.ollama.AiOllamaCompilerPlugin"

[[dependency]]
path = "../compiler-plugin/build/libs/ai.ollama-compiler-plugin-1.0.1-SNAPSHOT.jar"
path = "../compiler-plugin/build/libs/ai.ollama-compiler-plugin-1.1.0-SNAPSHOT.jar"

[[dependency]]
path = "../compiler-plugin/build/libs/ballerina-to-openapi-2.3.0.jar"
4 changes: 2 additions & 2 deletions ballerina/Dependencies.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

[ballerina]
dependencies-toml-version = "2"
distribution-version = "2201.12.0"
distribution-version = "2201.12.7"

[[package]]
org = "ballerina"
Expand Down Expand Up @@ -394,7 +394,7 @@ dependencies = [
[[package]]
org = "ballerinax"
name = "ai.ollama"
version = "1.0.1"
version = "1.1.0"
dependencies = [
{org = "ballerina", name = "ai"},
{org = "ballerina", name = "constraint"},
Expand Down
Binary file added ballerina/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion ballerina/provider.bal
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ public isolated client class ModelProvider {
# + prompt - The prompt to use in the chat messages
# + td - Type descriptor specifying the expected return type format
# + return - Generates a value that belongs to the type, or an error if generation fails
isolated remote function generate(ai:Prompt prompt, typedesc<anydata> td = <>) returns td|ai:Error = @java:Method {
isolated remote function generate(ai:Prompt prompt, @display {label: "Expected type"} typedesc<anydata> td = <>)
returns td|ai:Error = @java:Method {
'class: "io.ballerina.lib.ai.ollama.Generator"
} external;

Expand Down
1 change: 1 addition & 0 deletions build-config/resources/Ballerina.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ authors = ["Ballerina"]
distribution = "2201.12.0"
keywords = ["AI", "Agent", "Ollama", "Model", "Provider"]
license = ["Apache-2.0"]
icon="icon.png"
name = "ai.ollama"
org = "ballerinax"
repository = "https://github.com/ballerina-platform/module-ballerinax-ai.ollama"
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
org.gradle.caching=true
group=io.ballerina.lib
version=1.0.1-SNAPSHOT
version=1.1.0-SNAPSHOT
ballerinaLangVersion=2201.12.0

shadowJarPluginVersion=8.1.1
Expand Down
Loading