Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open ai #1

Merged
merged 10 commits into from
Oct 8, 2024
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
35 changes: 35 additions & 0 deletions .github/workflows/java-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,41 @@ on:
- main

jobs:
ollama-e2e:
runs-on: ubuntu-22.04
name: ollama-e2e
steps:
- uses: actions/checkout@v1
- uses: self-actuated/nvidia-run@master
- name: Install Ollama
run: |
curl -fsSL https://ollama.com/install.sh | sudo -E sh
- name: Start serving
run: |
# Run the background, there is no way to daemonise at the moment
ollama serve &

# A short pause is required before the HTTP port is opened
sleep 5

# This endpoint blocks until ready
time curl -i http://localhost:11434

- name: Pull llama3
run: |
ollama pull llama3

#- name: Invoke via the CLI
# run: |
# ollama run llama2 "What are the pros of MicroVMs for continous integrations, especially if Docker is the alternative?"

#- name: Invoke via API
# run: |
# curl -s http://localhost:11434/api/generate -d '{
# "model": "llama2",
# "stream": false,
# "prompt":"What are the risks of running privileged Docker containers for CI workloads?"
# }' | jq
build:
runs-on: ubuntu-22.04
strategy:
Expand Down
2 changes: 1 addition & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
![](https://github.com/CST-Group/cst-bindings/actions/workflows/java-ci.yml/badge.svg)
[![Maintainability](https://api.codeclimate.com/v1/badges/82a61f13a021683fabd3/maintainability)](https://codeclimate.com/github/CST-Group/cst-bindings/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/82a61f13a021683fabd3/test_coverage)](https://codeclimate.com/github/CST-Group/cst-bindings/test_coverage)
[![](https://jitpack.io/v/CST-Group/cst-bindings.svg)](https://jitpack.io/#CST-Group/cst-bindings)
![](https://github.com/CST-Group/cst-llms/actions/workflows/java-ci.yml/badge.svg)
[![Maintainability](https://api.codeclimate.com/v1/badges/82a61f13a021683fabd3/maintainability)](https://codeclimate.com/github/CST-Group/cst-llms/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/82a61f13a021683fabd3/test_coverage)](https://codeclimate.com/github/CST-Group/cst-llms/test_coverage)
[![](https://jitpack.io/v/CST-Group/cst-llms.svg)](https://jitpack.io/#CST-Group/cst-llms)


# Welcome to the CST Toolkit pages.
Expand All @@ -28,11 +28,11 @@ Note: This library is still under development, and some concepts or features mig
```
dependencies {
...
implementation 'com.github.CST-Group:cst-bindings:1.0.7'
implementation 'com.github.CST-Group:cst-llms:1.0.7'
}
```

Sometimes, the version number (tag) in this README gets out of date, as maintainers might forget to change it when releasing. Always check the release badge [![](https://jitpack.io/v/CST-Group/cst-bindings.svg)](https://jitpack.io/#CST-Group/cst-bindings) to see the actual current version number that should be provided in the dependencies in Step 2 above.
Sometimes, the version number (tag) in this README gets out of date, as maintainers might forget to change it when releasing. Always check the release badge [![](https://jitpack.io/v/CST-Group/cst-llms.svg)](https://jitpack.io/#CST-Group/cst-llms) to see the actual current version number that should be provided in the dependencies in Step 2 above.

### Maven

Expand All @@ -52,12 +52,12 @@ Sometimes, the version number (tag) in this README gets out of date, as maintain
```
<dependency>
<groupId>com.github.CST-Group</groupId>
<artifactId>cst-bindings</artifactId>
<artifactId>cst-llms</artifactId>
<version>1.0.7</version>
</dependency>
```

Sometimes, the version number (tag) in this README gets out of date, as maintainers might forget to change it when releasing. Always check the release badge [![](https://jitpack.io/v/CST-Group/cst-bindings.svg)](https://jitpack.io/#CST-Group/cst-bindings) to see the actual current version number that should be provided in the dependencies in Step 2 above.
Sometimes, the version number (tag) in this README gets out of date, as maintainers might forget to change it when releasing. Always check the release badge [![](https://jitpack.io/v/CST-Group/cst-llms.svg)](https://jitpack.io/#CST-Group/cst-llms) to see the actual current version number that should be provided in the dependencies in Step 2 above.

### Manual

Expand All @@ -68,11 +68,11 @@ Download the latest [release](https://github.com/CST-Group/cst/releases) and set
There are four CST repos:

- [CST](https://github.com/CST-Group/cst)
- [CST-Bindings](https://github.com/CST-Group/cst-bindings) (this repo)
- [CST-llms](https://github.com/CST-Group/cst-llms) (this repo)
- [CST-Desktop](https://github.com/CST-Group/cst-desktop)
- [CST-Legacy](https://github.com/CST-Group/cst-legacy)

The original [CST](https://github.com/CST-Group/cst) repo contains all core functionalities and some additional packages. It has no *Swing* or other graphical entities, being suitable to both desktop and mobile environments. [CST-Bindings](https://github.com/CST-Group/cst-bindings) contains the needed classes to communicate with [ROS](https://www.ros.org/) and [SOAR Cognitive Architecture](https://soar.eecs.umich.edu/). [CST-Desktop](https://github.com/CST-Group/cst-desktop) contains some utility classes as well. It is also the complete toolkit, as it has a chain dependency with the other three repos. Finally, all classes that were once important but became obsolete as CST evolved are in [CST-Legacy](https://github.com/CST-Group/cst-legacy).
The original [CST](https://github.com/CST-Group/cst) repo contains all core functionalities and some additional packages. It has no *Swing* or other graphical entities, being suitable to both desktop and mobile environments. [CST-llms](https://github.com/CST-Group/cst-llms) contains the needed classes to communicate with [ROS](https://www.ros.org/) and [SOAR Cognitive Architecture](https://soar.eecs.umich.edu/). [CST-Desktop](https://github.com/CST-Group/cst-desktop) contains some utility classes as well. It is also the complete toolkit, as it has a chain dependency with the other three repos. Finally, all classes that were once important but became obsolete as CST evolved are in [CST-Legacy](https://github.com/CST-Group/cst-legacy).



Expand Down
12 changes: 9 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ plugins {

group = 'com.github.CST-Group'

description = "CST-Bindings"
description = "CST-LLMs"

java {
//sourceCompatibility = JavaVersion.VERSION_11
//targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
//sourceCompatibility = JavaVersion.VERSION_1_8
//targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

version = '1.0.7'
Expand Down Expand Up @@ -55,6 +57,10 @@ dependencies {
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
testImplementation 'org.ros.rosjava_messages:std_msgs:0.5.11'
testImplementation 'org.ros.rosjava_messages:rosjava_test_msgs:0.3.0'
implementation 'io.github.sashirestela:simple-openai:3.6.0'

implementation 'io.github.resilience4j:resilience4j-retry:2.1.0'
implementation 'io.github.hamawhitegg:langchain-core:0.2.2'
}

task javadocJar(type: Jar) {
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 3 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading
Loading