-
Notifications
You must be signed in to change notification settings - Fork 2
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
chore: Add smoke test #80
Conversation
# Conflicts: # pnpm-lock.yaml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some clean-up here and there, overall LGTM
* Ask GPT about the capital of France. | ||
* @returns The answer from the orchestration service in Gen AI Hub. | ||
*/ | ||
export function orchestrationCompletion(): Promise<CompletionPostResponse> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[q] We could consider calling this from the e2e test, similar to how we do it for OpenAI. That way we gain additional confidence this code actually works 😉
# Conflicts: # package.json # pnpm-lock.yaml
module.exports = { | ||
hooks: { | ||
afterAllResolved: async lockfile => { | ||
// Object.keys(lockfile.packages) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uhm, leftover?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, I want to keep this for the follow up, because this code will most likely be needed for it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks pretty straightforward, however, there seem to be some leftovers, LGTM post-cleanup.
Also, the pipeline seems to fail because cloud foundry installs node 18, I suppose you need to adjust the manifest.yaml to select node 20. |
Co-authored-by: Tom Frenken <[email protected]>
Co-authored-by: Tom Frenken <[email protected]>
Co-authored-by: Tom Frenken <[email protected]>
@tomfrenken I wonder where you got this idea? To me it seems that I deleted a script during clean up. I added it back, should work now. |
sample-code/src/server.ts
Outdated
|
||
app.get('/ai-core/get-deployments', async (req, res) => { | ||
try { | ||
res.send(await chatCompletion()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this correct? shouldn't we call getDeployments function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oopsie, good catch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Add smoke tests using the sample code.