mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-02 03:55:55 +00:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4d8ebc8c38 | ||
|
|
21cfb6ee6f | ||
|
|
c72ad2b242 | ||
|
|
e83b0a7825 | ||
|
|
a8f2438288 | ||
|
|
d0ceaff6ed |
@@ -47,7 +47,7 @@ class QQOfficialMessageConverter(adapter.MessageConverter):
|
|||||||
yiri_msg_list.append(
|
yiri_msg_list.append(
|
||||||
platform_message.Image(base64=base64_url)
|
platform_message.Image(base64=base64_url)
|
||||||
)
|
)
|
||||||
message = ''
|
|
||||||
yiri_msg_list.append(platform_message.Plain(text=message))
|
yiri_msg_list.append(platform_message.Plain(text=message))
|
||||||
chain = platform_message.MessageChain(yiri_msg_list)
|
chain = platform_message.MessageChain(yiri_msg_list)
|
||||||
return chain
|
return chain
|
||||||
|
|||||||
@@ -101,14 +101,14 @@ class OpenAIChatCompletions(requester.LLMAPIRequester):
|
|||||||
content=pending_content,
|
content=pending_content,
|
||||||
tool_calls=real_tool_calls if len(real_tool_calls) > 0 else None
|
tool_calls=real_tool_calls if len(real_tool_calls) > 0 else None
|
||||||
),
|
),
|
||||||
finish_reason=chunk.choices[0].finish_reason,
|
finish_reason=chunk.choices[0].finish_reason if hasattr(chunk.choices[0], 'finish_reason') and chunk.choices[0].finish_reason is not None else 'stop',
|
||||||
logprobs=chunk.choices[0].logprobs,
|
logprobs=chunk.choices[0].logprobs,
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
model=args["model"],
|
model=chunk.model,
|
||||||
service_tier=chunk.service_tier,
|
service_tier=chunk.service_tier if hasattr(chunk, 'service_tier') else None,
|
||||||
system_fingerprint=chunk.system_fingerprint,
|
system_fingerprint=chunk.system_fingerprint if hasattr(chunk, 'system_fingerprint') else None,
|
||||||
usage=chunk.usage
|
usage=chunk.usage if hasattr(chunk, 'usage') else None
|
||||||
) if chunk else None
|
) if chunk else None
|
||||||
|
|
||||||
async def _make_msg(
|
async def _make_msg(
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
semantic_version = "v3.4.6.1"
|
semantic_version = "v3.4.6.2"
|
||||||
|
|
||||||
debug_mode = False
|
debug_mode = False
|
||||||
|
|
||||||
|
|||||||
12
web/package-lock.json
generated
12
web/package-lock.json
generated
@@ -4410,14 +4410,14 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/jsonpath-plus": {
|
"node_modules/jsonpath-plus": {
|
||||||
"version": "10.1.0",
|
"version": "10.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-10.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-10.2.0.tgz",
|
||||||
"integrity": "sha512-gHfV1IYqH8uJHYVTs8BJX1XKy2/rR93+f8QQi0xhx95aCiXn1ettYAd5T+7FU6wfqyDoX/wy0pm/fL3jOKJ9Lg==",
|
"integrity": "sha512-T9V+8iNYKFL2n2rF+w02LBOT2JjDnTjioaNFrxRy0Bv1y/hNsqR/EBK7Ojy2ythRHwmz2cRIls+9JitQGZC/sw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@jsep-plugin/assignment": "^1.2.1",
|
"@jsep-plugin/assignment": "^1.3.0",
|
||||||
"@jsep-plugin/regex": "^1.0.3",
|
"@jsep-plugin/regex": "^1.0.4",
|
||||||
"jsep": "^1.3.9"
|
"jsep": "^1.4.0"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"jsonpath": "bin/jsonpath-cli.js",
|
"jsonpath": "bin/jsonpath-cli.js",
|
||||||
|
|||||||
Reference in New Issue
Block a user