Skip to content

Commit

Permalink
Rename Provider in the UI to Model
Browse files Browse the repository at this point in the history
This should hopefully be clearer for users, since one provider can have many models.
  • Loading branch information
XInTheDark committed Dec 28, 2024
1 parent b92bf5b commit 6670d5a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,6 @@ updating manually also allows you to fetch and view the latest changes to the so
| Google Gemini | auto (gemini-1.5-pro, gemini-1.5-flash) | ▶️ 📄 | ![Active][active-badge] | Very fast | 9/10, very good overall model but requires an API Key. (It's *free*, see the section below) |
| Google Gemini (Experimental) | auto (changes frequently) | ▶️ 📄 | ![Active][active-badge] | Very fast | - |
| Google Gemini (Thinking) | auto (changes frequently) | ▶️ 📄 | ![Active][active-badge] | Very fast | - |
| GPT4Free Local API | - | ▶️ | ![Active][active-badge] | - | allows access to a large variety of providers. [read more][local-api-help] |
| Ollama Local API | - | ▶️ | ![Active][active-badge] | - | allows local inference. [read more][local-api-help] |
| Custom OpenAI-compatible API | - | ▶️ | ![Active][active-badge] | - | allows you to use any custom OpenAI-compatible API. [read more][local-api-help] |

▶️ - Supports streaming.
Expand Down
2 changes: 1 addition & 1 deletion src/aiChat.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ export default function Chat({ launchContext }) {
]}
</Form.Dropdown>

<Form.Description title="Provider" text="The provider and model used for this chat." />
<Form.Description title="Model" text="The provider and model used for this chat." />
<Form.Dropdown id="provider" defaultValue={chat?.provider || providers.default_provider_string()}>
{ChatProvidersReact()}
</Form.Dropdown>
Expand Down
2 changes: 1 addition & 1 deletion src/components/preferences/manageAIPresets.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const ManageAIPresets = () => {
}
>
<Form.TextField id="name" title="Name" defaultValue={preset.name} />
<Form.Description title="Provider" text="The provider and model used for this chat." />
<Form.Description title="Model" text="The provider and model used for this chat." />
<Form.Dropdown id="provider" defaultValue={preset.provider}>
{ChatProvidersReact()}
</Form.Dropdown>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { ChatProvidersReact } from "#root/src/api/data/providers_react.jsx";
import { ValueDropdown } from "#root/src/components/preferences/base/valueDropdown.jsx";

export const DefaultProvider = () => {
export const DefaultModel = () => {
const component = ChatProvidersReact();
return (
<ValueDropdown
id="defaultProvider"
title="Default Provider"
title="Default Model"
description={"The default provider and model used in this extension."}
dropdownComponent={component}
/>
Expand Down
4 changes: 2 additions & 2 deletions src/preferences.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { List } from "@raycast/api";
import { PreferenceComponent } from "#root/src/components/preferences/base/preferenceComponent.jsx";

// Components
import { DefaultProvider } from "#root/src/components/preferences/options/defaultProvider.jsx";
import { DefaultModel } from "#root/src/components/preferences/options/defaultModel.jsx";
import { GeneralOptions } from "#root/src/components/preferences/options/generalOptions.jsx";
import { AIChatOptions } from "#root/src/components/preferences/options/aiChatOptions.jsx";

Expand All @@ -27,7 +27,7 @@ export default function ManagePreferences() {
<List>
<List.Section title="Options">
{/* - Default Provider */}
{PreferenceComponent({ title: "Default Provider", target: <DefaultProvider /> })}
{PreferenceComponent({ title: "Default Model", target: <DefaultModel /> })}

{/* - General */}
{PreferenceComponent({ title: "General", target: <GeneralOptions /> })}
Expand Down

0 comments on commit 6670d5a

Please sign in to comment.