You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+39-5Lines changed: 39 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,8 @@ To see an index of the available language services, head to `localhost:3000`.
47
47
48
48
## Debugging
49
49
50
-
The server defaults to port 3000. You can test any service directly with curl to confirm Apollo is working independently of Lightning (or any other client).
50
+
The server defaults to port 3000. You can test any service directly with curl to
51
+
confirm Apollo is working independently of Lightning (or any other client).
51
52
52
53
For example, to trigger a `workflow_chat` stream:
53
54
@@ -57,13 +58,22 @@ curl -N -X POST http://localhost:3000/services/workflow_chat/stream \
57
58
-d '{"content":"make a simple http workflow","history":[],"api_key":"<your-anthropic-api-key>"}'
58
59
```
59
60
60
-
The `api_key` field is your Anthropic API key. If `ANTHROPIC_API_KEY` is already set in your `.env`, you can omit it. In Lightning, this is configured via the `ANTHROPIC_API_KEY` environment variable and passed through to Apollo on each request.
61
+
The `api_key` field is your Anthropic API key. If `ANTHROPIC_API_KEY` is already
62
+
set in your `.env`, you can omit it. In Lightning, this is configured via the
63
+
`ANTHROPIC_API_KEY` environment variable and passed through to Apollo on each
64
+
request.
61
65
62
-
The `-N` flag disables buffering so SSE events appear as they arrive. You should see a stream of `event: log` lines followed by `event: complete`. An `event: error` response means the issue is inside Apollo.
66
+
The `-N` flag disables buffering so SSE events appear as they arrive. You should
67
+
see a stream of `event: log` lines followed by `event: complete`. An
68
+
`event: error` response means the issue is inside Apollo.
63
69
64
-
If the stream returns successfully here but Lightning isn't receiving it, the issue is on the Lightning side -- check that `APOLLO_ENDPOINT=http://localhost:3000` is set correctly in Lightning's environment (no trailing slash).
70
+
If the stream returns successfully here but Lightning isn't receiving it, the
71
+
issue is on the Lightning side -- check that
72
+
`APOLLO_ENDPOINT=http://localhost:3000` is set correctly in Lightning's
73
+
environment (no trailing slash).
65
74
66
-
To check API key connectivity (Anthropic, OpenAI, Pinecone), hit the status service:
75
+
To check API key connectivity (Anthropic, OpenAI, Pinecone), hit the status
76
+
service:
67
77
68
78
```bash
69
79
curl http://localhost:3000/services/status
@@ -224,3 +234,27 @@ docker run -p 3000:3000 openfn-apollo
224
234
225
235
See the Contribution Guide for more details about how and where to contribute to
226
236
the Apollo platform.
237
+
238
+
## Release
239
+
240
+
New releases are assembled as Docker images whenever a version tag of the form
241
+
`@openfn/apollo@x.y.x` is pushed to GitHub.
242
+
243
+
This tag is automatically generated upon merging to main.
244
+
245
+
Github's `main` should represent the latest production version of apollo.
246
+
Ideally, releases should be assembled on a branch - usually `release/next` or
247
+
`release/1.2.3`. But this is not required - releases can be cut straight from a
248
+
fix or feature branch, or even from main.
249
+
250
+
To release a new apollo version:
251
+
252
+
- Checkout the branch that contains the release
253
+
- Run `bun changeset version`
254
+
- (if there are no changesets, you can either run `bun changeset` to create one,
255
+
or manually bump `package.json` and update `changelog.md`)
256
+
- Sanity check the new version number and changelog updates, just to be sure
257
+
there's no funny stuff.
258
+
- Commit changes and push
259
+
- When the PR is merged to main, a new tag is generated and a new Docker image
0 commit comments