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

Adding Chat apis #21

Closed
Sma1lboy opened this issue Oct 25, 2024 · 0 comments · Fixed by #22
Closed

Adding Chat apis #21

Sma1lboy opened this issue Oct 25, 2024 · 0 comments · Fixed by #22
Assignees
Milestone

Comments

@Sma1lboy
Copy link
Owner

type Query {
getChatHistory(chatId: ID!): [Message!]!
modelTags: ModelTags!
getChatDetails(chatId: ID!): Chat
}

type Mutation {
createChat: Chat!
deleteChat(chatId: ID!): Boolean!
clearChatHistory(chatId: ID!): Boolean!
updateChatTitle(chatId: ID!, title: String!): Chat!
}

type Subscription {
chatStream(input: ChatInput!): ChatCompletionChunk //Already done
}

type Chat {
id: ID!
title: String
messages: [Message!]!
createdAt: String!
updatedAt: String!
}

type User {
chats: [Chat!]
}

@Sma1lboy Sma1lboy assigned Sma1lboy and ZHallen122 and unassigned Sma1lboy Oct 25, 2024
@ZHallen122 ZHallen122 linked a pull request Oct 29, 2024 that will close this issue
@Sma1lboy Sma1lboy added this to the backend v0.1 milestone Nov 7, 2024
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 a pull request may close this issue.

2 participants