Skip to content

Commit 57f930c

Browse files
authored
Merge pull request #2 from launchableinc/fix-some-points
Fix some points
2 parents 43e58d8 + 1b19711 commit 57f930c

File tree

2 files changed

+25
-11
lines changed

2 files changed

+25
-11
lines changed

.github/workflows/test.yml

+16-2
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,31 @@ on:
55
branches: [ main ]
66
pull_request:
77
branches: [ main ]
8+
9+
env:
10+
LAUNCHABLE_TOKEN: ${{ secrets.LAUNCHABLE_TOKEN }}
11+
# OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }}
12+
813
jobs:
914
test:
1015
runs-on: ubuntu-latest
1116
steps:
1217
- uses: actions/checkout@v4
18+
# for setup launchable command
19+
- uses: actions/setup-python@v5
20+
- name: Install launchable CLI
21+
run: |
22+
pip install launchable
1323
- name: Set up JDK 1.8
1424
uses: actions/setup-java@v4
1525
with:
1626
distribution: temurin
1727
java-version: 8
28+
- name: Record commits and build
29+
run: 'launchable record build --name "$GITHUB_RUN_ID" --source .'
1830
- name: Test
1931
run: ./gradlew test --stacktrace
20-
#env:
21-
# OPENAI_TOKEN: ${{ secrets.OPENAI_TOKEN }}
32+
- name: Record
33+
run: launchable record tests gradle **/build/test-results/test/*.xml
34+
if: always()
35+

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
![Maven Central](https://img.shields.io/maven-central/v/com.theokanning.openai-gpt3-java/client?color=blue)
1+
![Maven Central](https://img.shields.io/maven-central/v/com.launchableinc.openai-java/client?color=blue)
22

33
> ⚠️OpenAI has deprecated all Engine-based APIs.
4-
> See [Deprecated Endpoints](https://github.com/TheoKanning/openai-java#deprecated-endpoints) below
4+
> See [Deprecated Endpoints](https://github.com/launchableinc/openai-java#deprecated-endpoints) below
55
> for more info.
66
77
# OpenAI-Java
@@ -40,14 +40,14 @@ as well as an example project using the service.
4040

4141
### Gradle
4242

43-
`implementation 'com.theokanning.openai-gpt3-java:<api|client|service>:<version>'`
43+
`implementation 'com.launchableinc.openai-java:<api|client|service>:<version>'`
4444

4545
### Maven
4646

4747
```xml
4848

4949
<dependency>
50-
<groupId>com.launchableinc.openai-gpt3-java</groupId>
50+
<groupId>com.launchableinc.openai-java</groupId>
5151
<artifactId>{api|client|service}</artifactId>
5252
<version>version</version>
5353
</dependency>
@@ -63,7 +63,7 @@ Your client will need to use snake case to work with the OpenAI API.
6363
### Retrofit client
6464

6565
If you're using retrofit, you can import the `client` module and use
66-
the [OpenAiApi](client/src/main/java/com/theokanning/openai/OpenAiApi.java).
66+
the [OpenAiApi](client/src/main/java/com/launchableincc/openai/OpenAiApi.java).
6767
You'll have to add your auth token as a header (
6868
see [AuthenticationInterceptor](client/src/main/java/com/theokanning/openai/AuthenticationInterceptor.java))
6969
and set your converter factory to use snake case and only include non-null fields.
@@ -217,7 +217,7 @@ stream: [OpenAiApiFunctionsWithStreamExample.java](example/src/main/java/example
217217
### Streaming thread shutdown
218218
219219
If you want to shut down your process immediately after streaming responses,
220-
call `OpenAiService.shutdownExecutor()`.
220+
call `OpenAiService.shutdownExecutor()`.
221221
This is not necessary for non-streaming calls.
222222
223223
## Running the example project
@@ -252,7 +252,7 @@ Or functions with 'stream' mode enabled:
252252
### Does this support GPT-4?
253253
254254
Yes! GPT-4 uses the ChatCompletion Api, and you can see the latest model
255-
options [here](https://platform.openai.com/docs/models/gpt-4).
255+
options [here](https://platform.openai.com/docs/models/gpt-4).
256256
GPT-4 is currently in a limited beta (as of 4/1/23), so make sure you have access before trying to
257257
use it.
258258
@@ -270,8 +270,8 @@ Make sure that OpenAI is available in your country.
270270
271271
### Why doesn't OpenAiService support x configuration option?
272272
273-
Many projects use OpenAiService, and in order to support them best I've kept it extremely simple.
274-
You can create your own OpenAiApi instance to customize headers, timeouts, base urls etc.
273+
Many projects use OpenAiService, and in order to support them best I've kept it extremely simple.
274+
You can create your own OpenAiApi instance to customize headers, timeouts, base urls etc.
275275
If you want features like retry logic and async calls, you'll have to make an `OpenAiApi` instance
276276
and call it directly instead of using `OpenAiService`
277277

0 commit comments

Comments
 (0)