Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions apps/docs/models.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,13 @@ list.
- **Models** controls the provider/model pairs that are available, the default
model, and specialized model roles.

For subscription-based providers (ChatGPT, GitHub Copilot, and Kimi for
Coding), the provider row also shows current plan usage when the provider
reports it, such as remaining Copilot premium requests or the percent used of
the ChatGPT 5-hour and weekly limits. These numbers come from unofficial
provider endpoints, so the usage line is hidden whenever the provider does not
return usable data.

Admins can enable or disable models from the task model list. The default model
must stay enabled, because Roomote uses it when a task does not request a
specific model.
Expand Down
3 changes: 3 additions & 0 deletions apps/web/src/components/settings/ChatGptConnectDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ export function ChatGptConnectDialog({
await queryClient.invalidateQueries({
queryKey: trpc.chatgptSubscription.status.queryKey(),
});
await queryClient.invalidateQueries({
queryKey: trpc.subscriptionUsage.list.queryKey(),
});
await onConnected?.();
handleOpenChange(false);
} else if (result.status === 'failed') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ export function GitHubCopilotConnectDialog({
queryClient.invalidateQueries({
queryKey: trpc.githubCopilotSubscription.status.queryKey(),
}),
queryClient.invalidateQueries({
queryKey: trpc.subscriptionUsage.list.queryKey(),
}),
]);
await onConnected?.();
close(false);
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading