Skip to content

Commit

Permalink
Make workflow trigger manual and change AI model
Browse files Browse the repository at this point in the history
  • Loading branch information
jhcoll committed Oct 25, 2023
1 parent d0d36fb commit a01264b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/generate-related.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Generate Read More related

on:
push:
workflow_dispatch:
branches:
- gh-pages

Expand Down
3 changes: 2 additions & 1 deletion scripts/generate-related/compute-embeddings.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const summarisePost = async (data) => {
const OPENAI_API_KEY = process.env.npm_config_openai_api_key;

return await fetch(
"https://api.openai.com/v1/engines/babbage-similarity/embeddings",
"https://api.openai.com/v1/embeddings",
{
method: "POST",
headers: {
Expand All @@ -52,6 +52,7 @@ const summarisePost = async (data) => {
},
body: JSON.stringify({
input: data,
model: "text-embedding-ada-002"
}),
})
.then((res) => {
Expand Down

0 comments on commit a01264b

Please sign in to comment.