-
Notifications
You must be signed in to change notification settings - Fork 0
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
Move server code to ai-playground #25
Conversation
|
||
export function registerAIPlaygroundRoutes( | ||
{ log, router }: { log: Logger; router: IRouter }, | ||
paths: { querySourceFields: string; chat: string; apiKey: string }, |
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.
nitpick: i think you should just do a base url here instead
@@ -0,0 +1,150 @@ | |||
/* | |||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | |||
* or more contributor license agreements. Licensed under the Elastic License |
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.
nitpick - can we move the the server only parts into a server/utils here? just so its easier to navigate.
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.
Of course
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.
Looks good, tested locally. Ready to merge once the server codes moves to separate utils folder as suggested by @joemcelroy
streamFactory
in@kbn/ml-response-stream/server