Commit Graph

60 Commits

Author SHA1 Message Date
VaalaCat
3640274cd1 feat: change repo name 2025-06-15 12:58:45 +00:00
Pedro Chaparro
0116f2994d feat: add support for image generation using gpt-image-1 (#971)
* feat: add gpt-image-1 support

* feat: add example to generate image using gpt-image-1 model

* style: missing period in comments

* feat: add missing fields to example

* docs: add GPT Image 1 to README

* revert: keep `examples/images/main.go` unchanged

* docs: remove unnecessary newline from example in README file
2025-05-13 12:51:08 +01:00
Alex Baranov
b162541513 Cleanup (#879)
* remove obsolete files

* update readme
2024-10-15 20:09:34 +01:00
Arun Das
643da8d650 depricated model GPT3Ada changed to GPT3Babbage002 (#843)
* depricated model GPT3Ada changed to GPT3Babbage002

* Delete test.mp3
2024-09-04 12:49:57 +01:00
eiixy
a3bd2569ac Improve handling of JSON Schema in OpenAI API Response Context (#819)
* feat: add jsonschema.Validate and jsonschema.Unmarshal

* fix Sanity check

* remove slices.Contains

* fix Sanity check

* add SchemaWrapper

* update api_integration_test.go

* update method 'reflectSchema' to support 'omitempty' in JSON tag

* add GenerateSchemaForType

* update json_test.go

* update `Warp` to `Wrap`

* fix Sanity check

* fix Sanity check

* update api_internal_test.go

* update README.md

* update README.md

* remove jsonschema.SchemaWrapper

* remove jsonschema.SchemaWrapper

* fix Sanity check

* optimize code formatting
2024-08-24 18:06:08 +01:00
Kshirodra Meher
4f4a85687b Added DALL.E 3 to readme.md (#741)
* Added DALL.E 3 to readme.md

Added DALL.E 3 to readme.md as its supported now as per issue https://github.com/sashabaranov/go-openai/issues/494

* Update README.md

---------

Co-authored-by: Alexander Baranov <677093+sashabaranov@users.noreply.github.com>
2024-05-13 23:08:14 +04:00
Andreas Deininger
ea551f422e Fixing typos (#706) 2024-04-13 15:32:38 +04:00
Alexander Kledal
682b7adb0b Update README.md (#631)
Ensure variables in examples are valid
2024-01-11 14:45:15 +04:00
Carson Kahn
d07833e19b Doc ways to improve reproducability besides Temp (#532) 2023-11-07 13:27:29 +04:00
Eli Bendersky
9e0232f941 Fix typo in README: AdaEmbeddingV2 (#516)
Copy-pasting the old sample caused compilation errors
2023-11-07 00:27:08 +04:00
Alexander Baranov
c47ddfc1a1 Update README.md (#511) 2023-10-10 21:22:45 +04:00
e. alvarez
84f77a0acd Add DotProduct Method and README Example for Embedding Similarity Search (#492)
* 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
2023-10-02 18:39:10 +04:00
Simone Vellei
25da859c18 Chore Deprecate legacy fine tunes API (#484)
* chore: add deprecation message

* chore: use new fine tuning API in README example
2023-08-31 14:14:39 +04:00
渡邉祐一 / Yuichi Watanabe
a14bc103f4 docs: Add Contributing Guidelines (#463) 2023-08-09 13:07:14 +09:00
渡邉祐一 / Yuichi Watanabe
71a24931db docs: add Frequently Asked Questions to README.md (#462)
* docs: add Frequently Asked Questions to README.md

* Update README.md

Co-authored-by: Alexander Baranov <677093+sashabaranov@users.noreply.github.com>

---------

Co-authored-by: Alexander Baranov <677093+sashabaranov@users.noreply.github.com>
2023-07-31 04:58:49 +09:00
Mehul Gohil
0234c1e0c2 add example: fine tune (#438)
* add example for fine tune

* update example for fine tune

* fix comments
2023-07-15 07:13:05 +09:00
渡邉祐一 / Yuichi Watanabe
619ad71735 docs: added instructions for obtaining OpenAI API key to README (#421)
* docs: added instructions for obtaining OpenAI API key to README

* docs: move 'Getting an OpenAI API key' before 'Other examples'
2023-07-06 00:54:27 +03:00
James MacWhyte
0ca4ea4867 move json schema to directory/package (#407)
* move json schema to directory/package

* added jsonschema to README
2023-06-24 20:22:11 +04:00
Alexander Baranov
5f4ef298e3 Update README.md (#406) 2023-06-23 13:07:43 +04:00
Alexander Baranov
ffa7abc050 Update README.md (#399) 2023-06-21 18:54:10 +04:00
渡邉祐一 / Yuichi Watanabe
e19b074a11 docs: add requires go version in README.md (#397) 2023-06-21 18:53:15 +04:00
渡邉祐一 / Yuichi Watanabe
68f9ef92be split integration test using go build tag (#392) 2023-06-19 12:12:38 +04:00
Bo-Yi Wu
980504b47e docs(readme): update format (#317) 2023-05-27 14:13:41 +04:00
Rich Coggins
a18c18d5e8 Update README.md with Azure OpenAI Embeddings example (#318) 2023-05-22 08:18:31 +04:00
Tom Hennessy
faae8b4b4b Update README.md (#319)
Added in `unofficial` to the README to make it clear it's not official.
2023-05-22 08:17:16 +04:00
xuanming.zhang
83d03fca52 Adjust the azure model deployment name call corresponding to README (#309) 2023-05-14 21:29:28 -07:00
Hoani Bryson
5f4ff3ebfa Add Readme example to example_test.go (#298)
* Add speech to text example in docs

* Add caption formats for audio transcription

* Add caption example to README

* Address sanity check errors

* Add tests for decodeResponse

* Use typechecker for audio response format

* Decoding response refactors

* Migrated examples to example_test.go

* Add some executable examples

* Update error docs

* Avoid linting example files which break conventions

* Restore README examples

* Enable linting for example_test
2023-05-08 20:16:01 +04:00
Quest Henkart
a24581dce2 maintain underlying error structs to allow for type conversion (#293)
* maintain underlying error structs to allow for type conversion and
defensive error checking

* allow Error.Is for Azure responses

* update readme, add tests to ensure type conversion

* fix whitespacing

* read me

* add import to readme example
2023-05-03 22:48:59 +04:00
Hoani Bryson
ecdea45b67 Adds support for audio captioning with Whisper (#267)
* Add speech to text example in docs

* Add caption formats for audio transcription

* Add caption example to README

* Address sanity check errors

* Add tests for decodeResponse

* Use typechecker for audio response format

* Decoding response refactors
2023-04-20 14:07:04 +01:00
Rich Coggins
334ee6dbdd Update README.md with Azure OpenAI ChatGPT example (#239)
Co-authored-by: coggsflod <richard.coggins@officedepot.com>
2023-04-08 22:42:55 +04:00
sashabaranov
89219e31b2 Update readme (#236)
* Update readme

* update ci names
2023-04-08 19:34:03 +04:00
kotaro.yamazaki
428839400a Update README.md to rename the image file created to example.png (#192) 2023-03-22 16:04:09 +04:00
Ryuichi Maeda
d529d13ba1 Add readme example of ChatGPT streaming completion (#177) 2023-03-19 18:01:51 +04:00
Qihang Hu
fd44d3665e add readme exmaple: chatgpt support context (#166) 2023-03-16 10:46:18 +04:00
Constantine A
3c8be76770 Added an example of image generation using DALL-E (#168)
* add "name" property for ChatCompletionMessage

* added a comment to the "Name" property

* Added an example of image generation using DALL-E

---------

Co-authored-by: Contantine A <avdeev@embria.com>
2023-03-16 10:44:31 +04:00
sashabaranov
ba77a6476e Update README.md (#160) 2023-03-15 11:47:36 +04:00
Qihang Hu
6580bd7289 readme example print error (#147) 2023-03-11 11:32:39 +04:00
sashabaranov
14e1943c20 add code coverage github action (#134) 2023-03-08 19:14:34 +04:00
sashabaranov
ba6fd510c9 Update README.md 2023-03-05 10:56:28 +04:00
Hoani Bryson
ee9424e6b9 Add speech to text example in docs (#124) 2023-03-05 10:49:49 +04:00
sashabaranov
8be4dfe746 Update README.md 2023-03-04 20:59:37 +04:00
sashabaranov
d59ab48c58 Update README.md 2023-03-04 15:23:39 +04:00
sashabaranov
114a7d14b2 Update README.md 2023-03-04 15:22:48 +04:00
sashabaranov
90bb5e47e8 Update README.md 2023-03-04 15:21:16 +04:00
sashabaranov
f89133c6e0 Update README.md 2023-03-04 15:19:54 +04:00
sashabaranov
656f6b174c Update README.md 2023-03-04 15:19:19 +04:00
sashabaranov
47887bf123 Rename and update docs (#120) 2023-03-04 15:18:43 +04:00
sashabaranov
202b629bc1 Update README.md 2023-03-04 14:57:43 +04:00
sashabaranov
b0b26afd50 Update README.md 2023-03-02 00:56:50 +04:00
sashabaranov
f5fc232415 Update README.md 2023-03-02 00:53:48 +04:00