opencode chat frontend implementation

This commit is contained in:
2026-01-31 11:01:30 +00:00
parent 925e8f2746
commit 76e71d1f8a
12 changed files with 175 additions and 2 deletions

View File

@@ -4,6 +4,8 @@ import {
ApiErrorSchema,
AuthResponseSchema,
CancelSubscriptionResponseSchema,
ChatRequestSchema,
ChatResponseSchema,
CreateCheckoutSessionRequestSchema,
CreateCheckoutSessionResponseSchema,
CreatePortalSessionResponseSchema,
@@ -683,6 +685,17 @@ export const apiContract = c.router({
},
headers: csrfHeaderSchema,
},
aiChat: {
method: "GET",
path: "/ai/chat",
query: ChatRequestSchema,
responses: {
200: ChatResponseSchema,
400: ApiErrorSchema,
404: ApiErrorSchema,
},
},
});
export type ApiContract = typeof apiContract;