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

Fix typos #223

Merged
merged 6 commits into from
Jul 26, 2024
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
2 changes: 1 addition & 1 deletion server/ai/prompts.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const PromptExtension = "tmpl"
const SystemSubTemplateName = ".system"
const UserSubTemplateName = ".user"

// Conviance vars for the filenames in ai/prompts/
// Convenience vars for the filenames in ai/prompts/
const (
PromptSummarizeThread = "summarize_thread"
PromptDirectMessageQuestion = "direct_message_question"
Expand Down
6 changes: 3 additions & 3 deletions server/built_in_tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,12 @@ func (p *Plugin) toolGetGithubIssue(context ai.ConversationContext, argsGetter a
return "invalid parameters to function", fmt.Errorf("failed to get arguments for tool GetGithubIssues: %w", err)
}

// Fail for over lengh repo ownder or name.
// Fail for over length repo owner or name.
if len(args.RepoOwner) > 39 || len(args.RepoName) > 100 {
return "invalid parameters to function", errors.New("invalid repo owner or repo name")
}

// Fail if repo ownder or repo name contain invalid characters.
// Fail if repo owner or repo name contain invalid characters.
if !validGithubRepoName.MatchString(args.RepoOwner) || !validGithubRepoName.MatchString(args.RepoName) {
return "invalid parameters to function", errors.New("invalid repo owner or repo name")
}
Expand Down Expand Up @@ -407,7 +407,7 @@ func (p *Plugin) getBuiltInTools(isDM bool) []ai.Tool {
Resolver: p.toolResolveLookupMattermostUser,
})

// Github plugin tools
// GitHub plugin tools
status, err := p.pluginAPI.Plugin.GetPluginStatus("github")
if err != nil && !errors.Is(err, pluginapi.ErrNotFound) {
p.API.LogError("failed to get github plugin status", "error", err.Error())
Expand Down
2 changes: 1 addition & 1 deletion server/enterprise/license.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (e *LicenseChecker) isAtLeastE10Licensed() bool { //nolint:unused
return pluginapi.IsE10LicensedOrDevelopment(config, license)
}

// isMultiLLMLicensed returns true when the server either has a multi-LLM license or is configured for development.
// IsMultiLLMLicensed returns true when the server either has a multi-LLM license or is configured for development.
func (e *LicenseChecker) IsMultiLLMLicensed() bool {
return e.isAtLeastE20Licensed()
}
Expand Down
2 changes: 1 addition & 1 deletion server/metrics/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (h *Server) Run() error {
return errors.Wrap(h.Server.ListenAndServe(), "prometheus ListenAndServe")
}

// Shutdown will shutdown the prometheus server.
// Shutdown will shut down the prometheus server.
func (h *Server) Shutdown() error {
return errors.Wrap(h.Server.Close(), "prometheus Close")
}
4 changes: 2 additions & 2 deletions webapp/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {setOpenRHSAction} from './redux_actions';
import {BotUsername, TelemetryEvents, TelemetrySources} from './constants';
import PostEventListener from './websocket';
import {BotsHandler, setupRedux} from './redux';
import UnreadsSumarize from './components/unreads_summarize';
import UnreadsSummarize from './components/unreads_summarize';
import {PostbackPost} from './components/postback_post';

type WebappStore = Store<GlobalState, Action<Record<string, unknown>>>
Expand Down Expand Up @@ -157,7 +157,7 @@ export default class Plugin {
}

if (registry.registerNewMessagesSeparatorActionComponent) {
registry.registerNewMessagesSeparatorActionComponent(UnreadsSumarize);
registry.registerNewMessagesSeparatorActionComponent(UnreadsSummarize);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/redux.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export async function setupRedux(registry: any, store: WebappStore) {
handler: makeCallsPostButtonClickedHandler(store.dispatch),
});

// This is a workaround for a bug where the the RHS was inaccessable to
// This is a workaround for a bug where the RHS was inaccessible to
// users that where not system admins. This is unable to be fixed properly
// because the Webapp does not export the AdvancedCreateComment directly.
// #120 filed to remove this workaround.
Expand Down