ваше сообщение коммита

This commit is contained in:
2025-06-26 20:34:58 +03:00
parent 25f1286c93
commit 1f4024d5be
36 changed files with 1709 additions and 967 deletions

View File

@@ -0,0 +1,65 @@
<template>
<BaseLayout>
<div class="openai-settings-block">
<button class="close-btn" @click="goBack">×</button>
<h2>OpenAI: интеграция и настройки</h2>
<AIProviderSettings
provider="openai"
label="OpenAI API Key"
description="Введите OpenAI API Key и (опционально) Base URL для кастомных endpoint."
apiKeyPlaceholder="sk-..."
baseUrlPlaceholder="https://api.openai.com/v1"
:showApiKey="true"
:showBaseUrl="true"
/>
</div>
</BaseLayout>
</template>
<script setup>
import BaseLayout from '@/components/BaseLayout.vue';
import AIProviderSettings from '@/views/settings/AIProviderSettings.vue';
import { useRouter } from 'vue-router';
const router = useRouter();
const goBack = () => router.push('/settings/ai');
</script>
<style scoped>
.openai-settings-block {
background: #fff;
border-radius: 16px;
box-shadow: 0 4px 32px rgba(0,0,0,0.12);
padding: 32px 24px 24px 24px;
width: 100%;
max-width: 600px;
margin: 40px auto 0 auto;
position: relative;
overflow-x: auto;
}
.close-btn {
position: absolute;
top: 18px;
right: 18px;
background: none;
border: none;
font-size: 2rem;
cursor: pointer;
color: #bbb;
transition: color 0.2s;
}
.close-btn:hover {
color: #333;
}
h2 {
margin-bottom: 0;
}
.ai-provider-settings.settings-panel {
background: none !important;
box-shadow: none !important;
border-radius: 0 !important;
margin-top: 0 !important;
max-width: 100% !important;
padding: 0 !important;
}
</style>