* Add DotProduct Method and README Example for Embedding Similarity Search
- Implement a DotProduct() method for the Embedding struct to calculate the dot product between two embeddings.
- Add a custom error type for vector length mismatch.
- Update README.md with a complete example demonstrating how to perform an embedding similarity search for user queries.
- Add unit tests to validate the new DotProduct() method and error handling.
* Update README to focus on Embedding Semantic Similarity
* feat: implement new fine tuning job API
* fix: export ListFineTuningJobEventsParameter
* fix: lint errors
* fix: test errors
* fix: code test coverage
* fix: code test coverage
* fix: use any
* chore: use url.Values
* Compatible with Azure Openai's 2023-07-01-preview version API interface about the error information returned by the intercepted interface
* Compatible with the 2023-07-01-preview API interface of Azure Openai, when content interception is triggered, the error message will contain innererror.InnerError struct is only valid for Azure OpenAI Service.
* chore: check for models before sending moderation requets to openai endpoint
* chore: table driven tests to include more model cases for moderations endpoint
* fix: invalid schema for function 'func_name': None is not of type 'object' (#429)(#432)
* test: add integration test for function call (#429)(#432)
* style: remove duplicate import (#429)(#432)
* Allow raw tokens to be used as embedding input
* fix linting issues (lines too long)
* add endpoint test for embedding from tokens
* remove redundant comments
* fix comment to match new param name
* change interface to any
* Rename methods and implement convert for base req
* add comments to CreateEmbeddings
* update tests
* shorten line length
* rename parameter
* refactoring http request creation and sending
* fix lint error
* increase the test coverage of client.go
* refactor: Change the style of HTTPRequestBuilder.Build func to one-argument-per-line.
* feat: use json.rawMessage, test functions
* chore: lint
* fix: tests
the ChatCompletion mock server doesn't actually run otherwise. N=0
is the default request but the server will treat it as n=1
* fix: tests should default to n=1 completions
* chore: add back removed interfaces, custom marshal
* chore: lint
* chore: lint
* chore: add some tests
* chore: appease lint
* clean up JSON schema + tests
* chore: lint
* feat: remove backwards compatible functions
for illustrative purposes
* fix: revert params change
* chore: use interface{}
* chore: add test
* chore: add back FunctionDefine
* chore: /s/interface{}/any
* chore: add back jsonschemadefinition
* chore: testcov
* chore: lint
* chore: remove pointers
* chore: update comment
* chore: address CR
added test for compatibility as well
---------
Co-authored-by: James <jmacwhyte@MacBooger-II.local>