Skip to content

Commit 1695710

Browse files
Merge branch 'main' of https://github.com/maxkb-dev/maxkb
2 parents ebe8506 + b0366b1 commit 1695710

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

apps/setting/models_provider/impl/openai_model_provider/model/llm.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,15 @@ def is_cache_model():
3030
@staticmethod
3131
def new_instance(model_type, model_name, model_credential: Dict[str, object], **model_kwargs):
3232
optional_params = MaxKBBaseModel.filter_optional_params(model_kwargs)
33+
streaming = model_kwargs.get('streaming', True)
34+
if 'o1' in model_name:
35+
streaming = False
3336
azure_chat_open_ai = OpenAIChatModel(
3437
model=model_name,
3538
openai_api_base=model_credential.get('api_base'),
3639
openai_api_key=model_credential.get('api_key'),
3740
**optional_params,
38-
streaming=True,
41+
streaming=streaming,
3942
custom_get_token_ids=custom_get_token_ids
4043
)
4144
return azure_chat_open_ai

ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div class="chat-operation-button flex-between">
33
<el-text type="info">
4-
<span class="ml-4">{{ datetimeFormat(data.create_time) }}</span>
4+
<span class="ml-4" v-if="data.create_time">{{ datetimeFormat(data.create_time) }}</span>
55
</el-text>
66

77
<div>

ui/src/components/ai-chat/index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
@media only screen and (max-width: 768px) {
4141
.ai-chat {
42-
height: calc(100% - 100px);
42+
height: calc(100% - 106px) !important;
4343
}
4444
}
4545
.chat-mobile {

ui/src/components/ai-chat/index.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
ref="aiChatRef"
44
class="ai-chat"
55
:class="type"
6-
:style="{ height: firsUserInput ? '100%' : undefined }"
6+
:style="{
7+
height: firsUserInput ? '100%' : undefined,
8+
paddingBottom: applicationDetails.disclaimer ? '20px' : 0
9+
}"
710
>
811
<div
912
v-show="showUserInputContent"

0 commit comments

Comments
 (0)