mirror of
https://github.com/hex248/sprint.git
synced 2026-02-07 18:23:03 +00:00
opencode chat frontend implementation
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user