处理问题
This commit is contained in:
parent
7e3eb5ad1f
commit
08acbdf45d
@ -12,10 +12,10 @@ client = OpenAI(
|
||||
api_key="sk-P7bm1Ioe7eovIWkbabAbY8yEON2VFu4RcHqumAFCfoxDVDdi",
|
||||
base_url="https://api.lkeap.cloud.tencent.com/v1"
|
||||
)
|
||||
|
||||
messages = [
|
||||
# {'role': 'system', 'content': '您现在是一个代码质量审核专家,您的任务是结合业务需求代码进行审核,判断代码是否符合需求'},
|
||||
]
|
||||
# client = OpenAI(
|
||||
# api_key="sk-56a83c7c71a5459ea181bc86f0a42af9",
|
||||
# base_url="https://api.deepseek.com/chat/completions"
|
||||
# )
|
||||
|
||||
|
||||
class WorkScore(BaseModel):
|
||||
@ -54,7 +54,7 @@ async def work_chat(work_score: WorkScore,
|
||||
"""
|
||||
|
||||
print(">>> prompt: \n%s" % prompt)
|
||||
messages.append({'role': 'system', 'content': prompt})
|
||||
messages = [{'role': 'user', 'content': prompt}]
|
||||
stream = client.chat.completions.create(
|
||||
model="deepseek-r1",
|
||||
messages=messages,
|
||||
|
@ -3,7 +3,7 @@ import {useRouter} from "vue-router";
|
||||
|
||||
export const request = axios.create({
|
||||
baseURL: import.meta.env.VITE_BACKEND_BASE_URL,
|
||||
timeout: 3 * 60 * 1000,
|
||||
timeout: 60 * 60 * 1000,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
}
|
||||
|
@ -4,6 +4,6 @@ import vue from '@vitejs/plugin-vue'
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
mode: 'prod',
|
||||
mode: 'dev',
|
||||
base: './',
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user