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

model add #80

Closed
1 task
luoxiaofeng1029 opened this issue Jul 7, 2023 · 1 comment
Closed
1 task

model add #80

luoxiaofeng1029 opened this issue Jul 7, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@luoxiaofeng1029
Copy link

Describe the feature

need gpt-3.5-turbo-16k-0613

Additional context

No response

Participation

  • I am willing to submit a pull request for this feature.
@luoxiaofeng1029 luoxiaofeng1029 added the enhancement New feature or request label Jul 7, 2023
@LyuLumos
Copy link
Contributor

LyuLumos commented Jul 7, 2023

In fact, gpt-3.5-turbo-16k is now gpt-3.5-turbo-16k-0613 you need. All gpt-3.5-turbo-16k will call the latest version of the model by default until a newer model is released by OpenAI.

curl -s --location 'https://api.openai.com/v1/chat/completions'  \
--header 'Authorization: Bearer $KEY' \
--header 'Content-Type: application/json' \
--data '{
  "model": "gpt-3.5-turbo-16k",
  "messages":[
    {"role": "system", "content": "Sure! Here s a simple example of a Hello, World! program in Python:When you run this code, it will display the message Hello, World! in the output. This is a common starting point for beginners learning programming as it introduces them to basic syntax and outputting text."},
    {"role": "user", "content": "explain it"}
    ]
  }'
{
  "id": "chatcmpl-7ZikzVmTZ8r70lnNqrsxjcfe3kor3",
  "object": "chat.completion",
  "created": 1688747881,
  "model": "gpt-3.5-turbo-16k-0613",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Sure! Let's break down the code step by step:.......

I will try to create a PR, but I am not sure it will be accepted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants