Updated enums

- Removed duplicated ModelKind enum
- Fixed enum spelling
This commit is contained in:
Caleb Owens 2024-05-11 13:35:10 +01:00
parent 032408a761
commit efca8a2db2
3 changed files with 5 additions and 9 deletions

View File

@ -1,7 +1,7 @@
import { AnthropicAIClient } from '$lib/ai/anthropicClient';
import { ButlerAIClient } from '$lib/ai/butlerClient';
import { OpenAIClient } from '$lib/ai/openAIClient';
import { OpenAIModelName, type AIClient, AnthropicModelName } from '$lib/ai/types';
import { OpenAIModelName, type AIClient, AnthropicModelName, ModelKind } from '$lib/ai/types';
import { splitMessage } from '$lib/utils/commitMessage';
import * as toasts from '$lib/utils/toasts';
import OpenAI from 'openai';
@ -39,11 +39,6 @@ Here is my git diff:
%{diff}
`;
export enum ModelKind {
OpenAI = 'openai',
Anthropic = 'anthropic'
}
export enum KeyOption {
BringYourOwn = 'bringYourOwn',
ButlerAPI = 'butlerAPI'

View File

@ -1,6 +1,7 @@
export enum ModelKind {
OpenAI = 'openai',
Anthropic = 'anthropic'
Anthropic = 'anthropic',
Ollama = 'ollama'
}
export enum OpenAIModelName {

View File

@ -1,6 +1,6 @@
<script lang="ts">
import { AIService, GitAIConfigKey, KeyOption, ModelKind } from '$lib/ai/service';
import { OpenAIModelName, AnthropicModelName } from '$lib/ai/types';
import { AIService, GitAIConfigKey, KeyOption } from '$lib/ai/service';
import { OpenAIModelName, AnthropicModelName, ModelKind } from '$lib/ai/types';
import { GitConfigService } from '$lib/backend/gitConfigService';
import InfoMessage from '$lib/components/InfoMessage.svelte';
import RadioButton from '$lib/components/RadioButton.svelte';