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

The endpoints of gpt-3.5-turbo-instruct model are different. #995

Open
nagisa599 opened this issue Aug 19, 2024 · 1 comment
Open

The endpoints of gpt-3.5-turbo-instruct model are different. #995

nagisa599 opened this issue Aug 19, 2024 · 1 comment

Comments

@nagisa599
Copy link

nagisa599 commented Aug 19, 2024

model ,err := openai.New(openai.WithToken(openapikey.OpenApikey), openai.WithModel("gpt-3.5-turbo-instruct"))
    if err != nil {
        log.Fatal(err)
    }
	completion, err := llms.GenerateFromSinglePrompt(ctx, 
		model, 
		"What is the capital of Japan?",
		llms.WithTemperature(0.5),
		llms.WithStopWords([]string{"\n"}))

2024/08/19 17:07:58 API returned unexpected status code: 404: This is not a chat model and thus not supported in the v1/chat/completions endpoint. Did you mean to use v1/completions?
exit status 1

The chat/completions endpoint is hit as shown below.

@tz3
Copy link

tz3 commented Aug 22, 2024

Are you sure about the OpenApikey you have inserted correctly?

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

No branches or pull requests

2 participants