Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: completions api flush after first calling #807

Merged
merged 2 commits into from May 13, 2024
Merged

feat: completions api flush after first calling #807

merged 2 commits into from May 13, 2024

Conversation

woorui
Copy link
Collaborator

@woorui woorui commented May 9, 2024

No description provided.

Copy link

vercel bot commented May 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
yomo ⬜️ Ignored (Inspect) Visit Preview May 13, 2024 3:07am

@@ -436,6 +436,7 @@ func (s *Service) GetChatCompletions(ctx context.Context, req openai.ChatComplet
ToolCalls: toolCalls,
Role: openai.ChatMessageRoleAssistant,
}
flusher.Flush()
Copy link
Collaborator Author

@woorui woorui May 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

responser flushes after first calling is completed

Copy link

codecov bot commented May 9, 2024

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 64.92%. Comparing base (4caef39) to head (c44d2e1).

Files Patch % Lines
pkg/bridge/ai/service.go 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #807      +/-   ##
==========================================
- Coverage   64.97%   64.92%   -0.06%     
==========================================
  Files          44       44              
  Lines        2581     2583       +2     
==========================================
  Hits         1677     1677              
- Misses        795      797       +2     
  Partials      109      109              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@woorui woorui requested a review from fanweixiao May 10, 2024 12:59
@woorui woorui self-assigned this May 13, 2024
@woorui woorui merged commit c9410af into master May 13, 2024
5 of 7 checks passed
@woorui woorui deleted the feat/flush branch May 13, 2024 03:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants