mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-18 06:22:28 +03:00
Updated enums
- Removed duplicated ModelKind enum - Fixed enum spelling
This commit is contained in:
parent
032408a761
commit
efca8a2db2
@ -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'
|
||||
|
@ -1,6 +1,7 @@
|
||||
export enum ModelKind {
|
||||
OpenAI = 'openai',
|
||||
Anthropic = 'anthropic'
|
||||
Anthropic = 'anthropic',
|
||||
Ollama = 'ollama'
|
||||
}
|
||||
|
||||
export enum OpenAIModelName {
|
||||
|
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user