openai / openai/openai-openapi

Error illegal start type private CreateCompletionRequestPrompt prompt = <|endtotext|>

Open
#411 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
No language data
Stars
2.5k
Forks
527
Avg merge
1h 46m
Merged PRs (30d)
2

Description

I have download OpenApi spec for chatgpt in my project(I used springboot Java) with build gradle. It Is generted Api , when it was running the application , the CLI give a show error.

Error : illegal start type private CreateCompletionRequestPrompt prompt = <| endtotext |>

CreateCompletionRequestPrompt Class
Row 66

Why? Do I have a configuration something after it Is download OpenApi?

Thank you

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Inspect the generated CreateCompletionRequestPrompt class at row 66 and the OpenAPI specification or generation configuration used by the reporter. Reproduce the Gradle build to identify whether the invalid declaration comes from the specification or code generation; done means the generated Java source compiles without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, openapi, spring-boot
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.