Compare commits

...

6 Commits

Author SHA1 Message Date
Junyan Qin
4d8ebc8c38 chore: release v3.4.6.2 2025-02-08 00:05:12 +08:00
Junyan Qin
21cfb6ee6f fix: some field may not exist in chatcmplchunk 2025-02-07 23:57:51 +08:00
WangCham
c72ad2b242 Merge pull request #1026 from 7emotions/patch-1
fix: remove fatal clearance to message from QQWebhook
2025-02-07 23:16:22 +08:00
Lorenzo Feng
e83b0a7825 fix: remove fatal clearance to message from QQWebhook 2025-02-07 21:19:47 +08:00
Junyan Qin (Chin)
a8f2438288 Merge pull request #1024 from RockChinQ/dependabot/npm_and_yarn/web/jsonpath-plus-10.2.0
chore(deps): bump jsonpath-plus from 10.1.0 to 10.2.0 in /web
2025-02-07 11:16:28 +08:00
dependabot[bot]
d0ceaff6ed chore(deps): bump jsonpath-plus from 10.1.0 to 10.2.0 in /web
Bumps [jsonpath-plus](https://github.com/s3u/JSONPath) from 10.1.0 to 10.2.0.
- [Release notes](https://github.com/s3u/JSONPath/releases)
- [Changelog](https://github.com/JSONPath-Plus/JSONPath/blob/main/CHANGES.md)
- [Commits](https://github.com/s3u/JSONPath/compare/v10.1.0...v10.2.0)

---
updated-dependencies:
- dependency-name: jsonpath-plus
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-07 02:56:43 +00:00
4 changed files with 13 additions and 13 deletions

View File

@@ -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

View File

@@ -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(

View File

@@ -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
View File

@@ -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",