fix: separate ear/mouth page

This commit is contained in:
aki
2026-04-20 22:04:58 +09:00
parent 66c529e4b1
commit f845e936f8
23 changed files with 1055 additions and 258 deletions
+6 -1
View File
@@ -77,14 +77,19 @@ CREATE TABLE IF NOT EXISTS providers (
'github-copilot',
'edge-speech',
'openai-speech',
'openai-transcription',
'openrouter-speech',
'openrouter-transcription',
'elevenlabs-speech',
'elevenlabs-transcription',
'deepgram-speech',
'deepgram-transcription',
'minimax-speech',
'volcengine-speech',
'alibabacloud-speech',
'microsoft-speech',
'google-speech'
'google-speech',
'google-transcription'
))
);
@@ -1,5 +1,5 @@
-- 0069_add_transcription_models_and_google_speech
-- Revert transcription model type and Google speech provider support.
-- 0069_add_transcription_models_and_speech_domain
-- Revert transcription model type and speech-domain expansion.
DELETE FROM models WHERE type = 'transcription';
DELETE FROM providers WHERE client_type = 'google-speech';
@@ -1,5 +1,5 @@
-- 0069_add_transcription_models_and_google_speech
-- Expand unified speech domain to support transcription models and Google speech providers.
-- 0069_add_transcription_models_and_speech_domain
-- Expand the speech domain to support transcription models and shared speech providers.
ALTER TABLE providers
DROP CONSTRAINT IF EXISTS providers_client_type_check;
@@ -0,0 +1,33 @@
-- 0071_split_transcription_providers
-- Remove dedicated transcription provider client types.
DELETE FROM providers
WHERE client_type IN (
'openai-transcription',
'openrouter-transcription',
'elevenlabs-transcription',
'deepgram-transcription',
'google-transcription'
);
ALTER TABLE providers DROP CONSTRAINT IF EXISTS providers_client_type_check;
ALTER TABLE providers
ADD CONSTRAINT providers_client_type_check CHECK (client_type IN (
'openai-responses',
'openai-completions',
'anthropic-messages',
'google-generative-ai',
'openai-codex',
'github-copilot',
'edge-speech',
'openai-speech',
'openrouter-speech',
'elevenlabs-speech',
'deepgram-speech',
'minimax-speech',
'volcengine-speech',
'alibabacloud-speech',
'microsoft-speech',
'google-speech'
));
@@ -0,0 +1,29 @@
-- 0071_split_transcription_providers
-- Add dedicated transcription provider client types.
ALTER TABLE providers DROP CONSTRAINT IF EXISTS providers_client_type_check;
ALTER TABLE providers
ADD CONSTRAINT providers_client_type_check CHECK (client_type IN (
'openai-responses',
'openai-completions',
'anthropic-messages',
'google-generative-ai',
'openai-codex',
'github-copilot',
'edge-speech',
'openai-speech',
'openai-transcription',
'openrouter-speech',
'openrouter-transcription',
'elevenlabs-speech',
'elevenlabs-transcription',
'deepgram-speech',
'deepgram-transcription',
'minimax-speech',
'volcengine-speech',
'alibabacloud-speech',
'microsoft-speech',
'google-speech',
'google-transcription'
));
+24 -4
View File
@@ -21,14 +21,19 @@ SELECT * FROM providers
WHERE client_type NOT IN (
'edge-speech',
'openai-speech',
'openai-transcription',
'openrouter-speech',
'openrouter-transcription',
'elevenlabs-speech',
'elevenlabs-transcription',
'deepgram-speech',
'deepgram-transcription',
'minimax-speech',
'volcengine-speech',
'alibabacloud-speech',
'microsoft-speech',
'google-speech'
'google-speech',
'google-transcription'
)
ORDER BY created_at DESC;
@@ -54,14 +59,19 @@ FROM providers
WHERE client_type NOT IN (
'edge-speech',
'openai-speech',
'openai-transcription',
'openrouter-speech',
'openrouter-transcription',
'elevenlabs-speech',
'elevenlabs-transcription',
'deepgram-speech',
'deepgram-transcription',
'minimax-speech',
'volcengine-speech',
'alibabacloud-speech',
'microsoft-speech',
'google-speech'
'google-speech',
'google-transcription'
);
-- name: CreateModel :one
@@ -230,8 +240,18 @@ WHERE client_type IN (
'minimax-speech',
'volcengine-speech',
'alibabacloud-speech',
'microsoft-speech',
'google-speech'
'microsoft-speech'
)
ORDER BY created_at DESC;
-- name: ListTranscriptionProviders :many
SELECT * FROM providers
WHERE client_type IN (
'openai-transcription',
'openrouter-transcription',
'elevenlabs-transcription',
'deepgram-transcription',
'google-transcription'
)
ORDER BY created_at DESC;