feat: add proxy support and fix streaming mode (#122)

This commit is contained in:
puppywang
2023-02-25 17:13:19 +08:00
committed by GitHub
parent cc91e95eed
commit 628187f5c3
7 changed files with 250 additions and 12 deletions

View File

@@ -16,6 +16,7 @@ interface ConfigState {
timeoutMs?: number
reverseProxy?: string
apiModel?: string
socksProxy?: string
}
const props = defineProps<Props>()
@@ -69,6 +70,7 @@ watch(
<p>API方式{{ config?.apiModel ?? '-' }}</p>
<p>反向代理{{ config?.reverseProxy ?? '-' }}</p>
<p>超时时间{{ config?.timeoutMs ?? '-' }}</p>
<p>Socks代理{{ config?.socksProxy ?? '-' }}</p>
</div>
</NCard>
</NModal>