Yan
38cff317a0
fix: add index in the tool calls when chat by stream (gemini)
2024-12-28 17:56:31 +08:00
CalciumIon
c4e256e69b
refactor: Update Message methods to use pointer receivers
...
- Refactored ParseToolCalls, SetToolCalls, IsStringContent, and ParseContent methods in the Message struct to use pointer receivers, improving efficiency and consistency in handling mutable state.
- Enhanced code readability and maintainability by ensuring all relevant methods operate on the pointer receiver, aligning with Go best practices.
2024-12-22 16:30:18 +08:00
CalciumIon
87a5e40daf
refactor: Update SetToolCalls method to use pointer receiver
...
- Changed the SetToolCalls method to use a pointer receiver for the Message struct, allowing for modifications to the original instance.
- This change improves the method's efficiency and aligns with Go best practices for mutating struct methods.
2024-12-22 16:22:55 +08:00
CalciumIon
0c326556aa
refactor: Update OpenAI request and message handling
...
- Changed the type of ToolCalls in the Message struct from `any` to `json.RawMessage` for better type safety and clarity.
- Introduced ParseToolCalls and SetToolCalls methods to handle ToolCalls more effectively, improving code readability and maintainability.
- Updated the ParseContent method to work with the new MediaContent type instead of MediaMessage, enhancing the structure of content parsing.
- Refactored Gemini relay functions to utilize the new ToolCalls handling methods, streamlining the integration with OpenAI and Gemini systems.
2024-12-22 16:20:30 +08:00
CalciumIon
865b98a454
Merge branch 'feat/o1'
...
# Conflicts:
# dto/openai_request.go
2024-12-21 16:45:45 +08:00
MartialBE
43a7b59b68
feat: support for Gemini structured output.
2024-12-21 16:01:17 +08:00
HynoR
35277f2b4a
feat: 适配o1模型
2024-12-20 22:07:53 +08:00
CalciumIon
97fdcd8e8f
feat: 完善audio计费
2024-11-07 16:12:09 +08:00
1808837298@qq.com
74f9006b40
feat: realtime
...
(cherry picked from commit d4966246e68dbdcdab45ec5c5141362834d74425)
2024-11-05 19:27:47 +08:00
1808837298@qq.com
33af069fae
feat: realtime
...
(cherry picked from commit a5529df3e1a4c08a120e8c05203a7d885b0fe8d8)
2024-11-05 19:24:14 +08:00
1808837298@qq.com
e3c85572d4
Update dto
...
(cherry picked from commit 030187ff75c64c40017cda2fa98ef2b3c01f0bd5)
2024-11-05 19:23:56 +08:00
CalciumIon
139a104b26
feat: support gpt-4o-audio-preview
2024-11-04 15:27:12 +08:00
1808837298@qq.com
8cea6dff4a
feat: support embedding encoding_format param
2024-10-10 13:23:12 +08:00
1808837298@qq.com
9a4ca1e210
feat: playground
2024-09-26 00:59:09 +08:00
CalciumIon
804aad3f37
feat: support o1 channel test
2024-09-13 03:15:32 +08:00
CalciumIon
2650ec9b59
feat: claude response return model name
2024-09-11 19:12:55 +08:00
CalciumIon
7c4d9d225e
feat: support SiliconFlow ( close #437 , close #403 )
2024-08-16 18:27:26 +08:00
CalciumIon
2e3c266bd6
fix: response format
2024-08-07 15:43:01 +08:00
kakingone
2100d8ee0c
addupload
2024-07-31 15:48:51 +08:00
CalciumIon
c9100b219f
feat: support ali image
2024-07-19 00:45:52 +08:00
CalciumIon
f96291a25a
feat: support gemini tool calling ( close #368 )
2024-07-18 20:28:47 +08:00
CalciumIon
11fd993574
feat: support claude tool calling
2024-07-18 00:36:05 +08:00
Calcium-Ion
0f94ff47b5
Merge pull request #367 from Calcium-Ion/audio
...
feat: support cloudflare tts
2024-07-17 17:34:59 +08:00
daggeryu
fd87260209
fix: embedding model dimensions
2024-07-17 16:40:44 +08:00
CalciumIon
bcc7f3edb2
refactor: audio relay
2024-07-16 22:07:10 +08:00
CalciumIon
7029065892
refactor: 重构流模式逻辑
2024-07-15 18:04:05 +08:00
CalciumIon
7b36a2b885
feat: support cloudflare worker ai
2024-07-13 19:55:22 +08:00
CalciumIon
e8b93ed6ec
feat: support claude stream_options
2024-07-08 01:45:43 +08:00
CalciumIon
b0e234e8f5
feat: support stream_options
2024-07-08 01:27:57 +08:00
CalciumIon
8af4e28f75
feat: support cohere rerank
2024-07-06 17:09:22 +08:00
CalciumIon
d767ae04ff
chore: 重构
2024-06-27 19:30:17 +08:00
Xiangyuan Liu
c993ab2746
feat: suno api 支持
...
feat: 调试 suno
feat: 补充suno 文档
2024-06-13 10:35:48 +08:00
CaIon
5715fcf8fb
feat: add pricing page
2024-05-13 23:02:35 +08:00
CaIon
1c6fd87909
fix: 规范claude返回格式
2024-04-26 02:56:35 +08:00
CaIon
d1c8947851
fix: 规范claude返回格式
2024-04-25 23:57:39 +08:00
CaIon
bfcaccc2e3
feat: support cohere ( close #195 )
2024-04-24 18:49:56 +08:00
CaIon
2841669246
feat: 完善函数计费
2024-04-23 23:01:06 +08:00
CaIon
bdc65bdba2
feat: 启用函数计费
2024-04-22 16:35:56 +08:00
CaIon
4b60528c5f
feat: 本地重试
2024-04-04 16:35:44 +08:00
CaIon
44a8ade4ba
fix: remove sensitive check on completion ( close #157 )
2024-03-29 22:20:14 +08:00
CaIon
3e03c5a742
fix: add missing id,object,created
2024-03-21 23:44:39 +08:00
CaIon
c4b3d3a975
fix: fix embedding
2024-03-21 17:39:05 +08:00
CaIon
222a55387d
fix: fix SensitiveWords error
2024-03-21 14:29:56 +08:00
CaIon
64b9d3b58c
feat: 初步兼容生成内容检查
2024-03-20 19:00:51 +08:00
CaIon
9b5353a81a
feat: support InsightFace ( close #60 )
2024-03-14 18:09:57 +08:00
CaIon
d704902b70
feat: 兼容自定义变焦,完善modal操作
2024-03-14 16:42:37 +08:00
CaIon
3d10c9f090
feat: 将操作拆分成单独的模型
2024-03-13 21:19:48 +08:00
CaIon
2ad591411e
feat: support shorten
2024-03-13 17:46:34 +08:00
CaIon
fd3a41bacb
feat: 请求超时处理
2024-03-13 16:19:22 +08:00
CaIon
37c0c8ebdd
feat: 初步兼容midjourney-proxy-plus
2024-03-13 15:37:01 +08:00