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(function-calling): support multi-turn chat completion request for OpenAI #758

Merged
merged 10 commits into from
Mar 20, 2024

Conversation

fanweixiao
Copy link
Member

@fanweixiao fanweixiao commented Mar 19, 2024

$ curl -i -X POST -H "Content-Type: application/json" -d '{"prompt":"compare nike and puma website speed"}' http://127.0.0.1:8000/invoke
HTTP/1.1 200 OK
Content-Length: 944
Connection: keep-alive
Content-Type: application/json
Date: Tue, 19 Mar 2024 13:30:14 GMT
Keep-Alive: timeout=4
Proxy-Connection: keep-alive

{
  "Content": "Based on the data provided for the domains nike.com and puma.com which include IP addresses and average latencies, we can infer the following about their website speeds:
  - Nike.com has an IP address of 13.225.183.84 with an average latency of 65.568333 milliseconds.
  - Puma.com has an IP address of 151.101.194.132 with an average latency of 54.563666 milliseconds.
  
  Comparing these latencies, Puma.com is faster than Nike.com as it has a lower average latency. 
  
  Please be aware, however, that website speed can be influenced by many factors beyond latency, such as server processing time, content size, and delivery networks among others. To get a more comprehensive understanding of website speed, you would need to consider additional metrics and possibly conductreal-time speed tests.",
  "FinishReason": "stop"
}

@fanweixiao fanweixiao self-assigned this Mar 19, 2024
Copy link

vercel bot commented Mar 19, 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 Mar 20, 2024 4:13am

Copy link

codecov bot commented Mar 19, 2024

Codecov Report

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

Project coverage is 63.91%. Comparing base (e323eaf) to head (4125e34).
Report is 1 commits behind head on master.

Files Patch % Lines
pkg/bridge/ai/provider/gemini/provider.go 0.00% 3 Missing ⚠️
pkg/bridge/ai/provider/azopenai/provider.go 0.00% 2 Missing ⚠️
pkg/bridge/ai/provider/openai/provider.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #758      +/-   ##
==========================================
+ Coverage   61.43%   63.91%   +2.47%     
==========================================
  Files          45       43       -2     
  Lines        2653     2497     -156     
==========================================
- Hits         1630     1596      -34     
+ Misses        909      785     -124     
- Partials      114      116       +2     

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

@fanweixiao fanweixiao changed the title refactor(llm): parameters feat(function-calling): support multi-turn chat completion request for OpenAI Mar 19, 2024
@fanweixiao fanweixiao marked this pull request as ready for review March 19, 2024 14:34
@fanweixiao fanweixiao requested a review from woorui as a code owner March 19, 2024 14:34
@fanweixiao fanweixiao merged commit 2372021 into master Mar 20, 2024
6 of 7 checks passed
@fanweixiao fanweixiao deleted the refactor/llm-parameters branch March 20, 2024 06:49
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

3 participants