🐳 experimental: Dev Image Workflow & Remove Unused Code (#1928)

* chore: remove unused code in progressCallback, as well as handle reply.trim(), post `getCompletion`

* chore(Dockerfile): remove curl installation

* experimental: dev image parallelized with matrix strategy and building for amd64/arm64 support

* make platforms explicit
This commit is contained in:
Danny Avila 2024-02-29 09:24:55 -05:00 committed by GitHub
parent 388dc1789b
commit 93803323cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 33 additions and 58 deletions

View file

@ -624,7 +624,7 @@ class OpenAIClient extends BaseClient {
const { finish_reason } = streamResult.choices[0];
opts.addMetadata({ finish_reason });
}
return reply.trim();
return (reply ?? '').trim();
}
initializeLLM({