mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
Merge branch 'main' of https://github.com/maxkb-dev/maxkb
This commit is contained in:
commit
1695710cbe
|
|
@ -30,12 +30,15 @@ class OpenAIChatModel(MaxKBBaseModel, BaseChatOpenAI):
|
|||
@staticmethod
|
||||
def new_instance(model_type, model_name, model_credential: Dict[str, object], **model_kwargs):
|
||||
optional_params = MaxKBBaseModel.filter_optional_params(model_kwargs)
|
||||
streaming = model_kwargs.get('streaming', True)
|
||||
if 'o1' in model_name:
|
||||
streaming = False
|
||||
azure_chat_open_ai = OpenAIChatModel(
|
||||
model=model_name,
|
||||
openai_api_base=model_credential.get('api_base'),
|
||||
openai_api_key=model_credential.get('api_key'),
|
||||
**optional_params,
|
||||
streaming=True,
|
||||
streaming=streaming,
|
||||
custom_get_token_ids=custom_get_token_ids
|
||||
)
|
||||
return azure_chat_open_ai
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div class="chat-operation-button flex-between">
|
||||
<el-text type="info">
|
||||
<span class="ml-4">{{ datetimeFormat(data.create_time) }}</span>
|
||||
<span class="ml-4" v-if="data.create_time">{{ datetimeFormat(data.create_time) }}</span>
|
||||
</el-text>
|
||||
|
||||
<div>
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@
|
|||
|
||||
@media only screen and (max-width: 768px) {
|
||||
.ai-chat {
|
||||
height: calc(100% - 100px);
|
||||
height: calc(100% - 106px) !important;
|
||||
}
|
||||
}
|
||||
.chat-mobile {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,10 @@
|
|||
ref="aiChatRef"
|
||||
class="ai-chat"
|
||||
:class="type"
|
||||
:style="{ height: firsUserInput ? '100%' : undefined }"
|
||||
:style="{
|
||||
height: firsUserInput ? '100%' : undefined,
|
||||
paddingBottom: applicationDetails.disclaimer ? '20px' : 0
|
||||
}"
|
||||
>
|
||||
<div
|
||||
v-show="showUserInputContent"
|
||||
|
|
|
|||
Loading…
Reference in New Issue