mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-25 14:15:00 +00:00
refactor: OpenAI integration (#996)
- Add `OpenAIResponse` to trim the `<think>...</think>` block - Add an `Enable Streaming` option to fix the issue that some services do not support streaming output Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
69d107430a
commit
c3eca0d7fd
6 changed files with 145 additions and 85 deletions
|
@ -616,6 +616,10 @@
|
|||
Text="{Binding GenerateSubjectPrompt, Mode=TwoWay}"
|
||||
AcceptsReturn="true"
|
||||
TextWrapping="Wrap"/>
|
||||
|
||||
<CheckBox Margin="0,12,0,0"
|
||||
Content="{DynamicResource Text.Preferences.AI.Streaming}"
|
||||
IsChecked="{Binding Streaming, Mode=TwoWay}"/>
|
||||
</StackPanel>
|
||||
</DataTemplate>
|
||||
</ContentControl.DataTemplates>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue