Skip to content
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

Merged
merged 4 commits into from
Mar 7, 2024

Conversation

yansavitski
Copy link
Owner

@yansavitski yansavitski commented Mar 5, 2024

  • ai_playground server code to be moved to package
  • move streamFactory in @kbn/ml-response-stream/server
  • investigate whether we can use it - we can, cause the package doesn't have any dependencies
  • ai-assist server code to be moved to package


export function registerAIPlaygroundRoutes(
{ log, router }: { log: Logger; router: IRouter },
paths: { querySourceFields: string; chat: string; apiKey: string },
Copy link
Collaborator

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
Copy link
Collaborator

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.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course

Copy link
Collaborator

@Samiul-TheSoccerFan Samiul-TheSoccerFan left a 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

@Samiul-TheSoccerFan Samiul-TheSoccerFan merged commit 063098a into ai-playground Mar 7, 2024
1 check passed
@Samiul-TheSoccerFan Samiul-TheSoccerFan deleted the move-server-routes-to-ai branch March 7, 2024 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants