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

Move some code into internal directory #304

Closed
5 tasks done
sashabaranov opened this issue May 8, 2023 · 1 comment · Fixed by #325 or #329
Closed
5 tasks done

Move some code into internal directory #304

sashabaranov opened this issue May 8, 2023 · 1 comment · Fixed by #325 or #329
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@sashabaranov
Copy link
Owner

sashabaranov commented May 8, 2023

The root directory of the project is pretty bloated, it would be nice if can move the following into the internal directory:

  • error_accumulator
  • request_builder
  • form_builder
  • unmarshaler
  • marshaller

Also, I don't think we need Makefile anymore given the CI setup.

@sashabaranov sashabaranov added good first issue Good for newcomers help wanted Extra attention is needed labels May 8, 2023
@liushuangls
Copy link
Contributor

There are some questions:

  1. error_accumulator use ErrorResponse if move to internal will be cycle import error
  2. request_builder_test.go depend on client.go if move to internal will be cycle import error
  3. I think Makefile is helpful in local run test or golangci-lint

Do you have any ideas?

vvatanabe added a commit to vvatanabe/go-openai that referenced this issue May 26, 2023
vvatanabe added a commit to vvatanabe/go-openai that referenced this issue May 26, 2023
vvatanabe added a commit to vvatanabe/go-openai that referenced this issue May 26, 2023
@sashabaranov sashabaranov reopened this May 28, 2023
vvatanabe added a commit to vvatanabe/go-openai that referenced this issue May 28, 2023
sashabaranov pushed a commit that referenced this issue May 31, 2023
* move request_builder into internal pkg (#304)

* add some test for internal.RequestBuilder

* add a test for openai.GetEngine
@sashabaranov sashabaranov reopened this May 31, 2023
vvatanabe added a commit to vvatanabe/go-openai that referenced this issue May 31, 2023
vvatanabe added a commit to vvatanabe/go-openai that referenced this issue May 31, 2023
sashabaranov pushed a commit that referenced this issue Jun 5, 2023
* move error_accumulator into internal pkg (#304)

* move error_accumulator into internal pkg (#304)

* add a test for ErrTooManyEmptyStreamMessages in stream_reader (#304)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
2 participants