Skip to content

Conversation

@kevinkim-ogp
Copy link
Contributor

@kevinkim-ogp kevinkim-ogp commented Nov 5, 2025

TL;DR

Added a new chat API to stream LLM responses from Pair based on user inputs.

What changed?

  • Created a new /api/chat endpoint that handles streaming chat responses
  • Added Langfuse integration for prompt management and observability
  • Set up feature flag integration with Launch Darkly for prompt configuration

How to test?

  1. Send a POST request to /api/chat with a valid authentication token
  2. Include a request body with the following structure:
    {
      "messages": [
        {
          "role": "user",
          "parts": [{ "type": "text", "text": "Your message here" }]
        }
      ],
      "userId": "optional-user-id",
      "sessionId": "optional-session-id"
    }
  3. Verify that the response is streamed back

@kevinkim-ogp kevinkim-ogp changed the title feat: add api for chat streaming [AI-8]: add api for chat streaming Nov 5, 2025
@kevinkim-ogp kevinkim-ogp force-pushed the ai-builder/chat-stream branch from 4de7cb3 to 6b763de Compare November 6, 2025 03:55
@kevinkim-ogp kevinkim-ogp force-pushed the ai-builder/setup-api-route branch from 20cca9f to dd8d019 Compare November 6, 2025 03:55
@kevinkim-ogp kevinkim-ogp marked this pull request as ready for review November 6, 2025 04:04
@kevinkim-ogp kevinkim-ogp requested a review from a team as a code owner November 6, 2025 04:04
@kevinkim-ogp kevinkim-ogp force-pushed the ai-builder/setup-api-route branch from dd8d019 to e3456fc Compare November 13, 2025 01:50
@kevinkim-ogp kevinkim-ogp force-pushed the ai-builder/chat-stream branch 2 times, most recently from d5764f5 to dacfda0 Compare November 14, 2025 02:55
@kevinkim-ogp kevinkim-ogp force-pushed the ai-builder/setup-api-route branch from e3456fc to d33fa06 Compare November 14, 2025 02:55
@kevinkim-ogp kevinkim-ogp force-pushed the ai-builder/chat-stream branch from dacfda0 to e1aaa04 Compare November 14, 2025 07:47
@kevinkim-ogp kevinkim-ogp force-pushed the ai-builder/setup-api-route branch from d33fa06 to 4c95a8a Compare November 14, 2025 07:47
@kevinkim-ogp kevinkim-ogp marked this pull request as draft November 27, 2025 01:27
@kevinkim-ogp kevinkim-ogp force-pushed the ai-builder/chat-stream branch from e1aaa04 to e925d74 Compare December 1, 2025 13:48
@kevinkim-ogp kevinkim-ogp force-pushed the ai-builder/setup-api-route branch from 4c95a8a to ed9c60d Compare December 1, 2025 13:48
@kevinkim-ogp kevinkim-ogp changed the title [AI-8]: add api for chat streaming [AI-8] PLU-584: add api for chat streaming Dec 1, 2025
@linear
Copy link

linear bot commented Dec 1, 2025

@kevinkim-ogp kevinkim-ogp force-pushed the ai-builder/chat-stream branch from e925d74 to d9d43f7 Compare December 1, 2025 14:35
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.

2 participants