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

merge main branch #1

Open
wants to merge 188 commits into
base: master
Choose a base branch
from
Open

Commits on May 10, 2023

  1. change azure engine config to modelMapper (#306)

    * change azure engine config to azure modelMapper config
    
    * Update go.mod
    
    * Revert "Update go.mod"
    
    This reverts commit 78d14c5.
    
    * lint fix
    
    * add test
    
    * lint fix
    
    * lint fix
    
    * lint fix
    
    * opt
    
    * opt
    
    * opt
    
    * opt
    GargantuaX authored May 10, 2023
    Configuration menu
    Copy the full SHA
    be253c2 View commit details
    Browse the repository at this point in the history

Commits on May 15, 2023

  1. Configuration menu
    Copy the full SHA
    83d03fc View commit details
    Browse the repository at this point in the history

Commits on May 16, 2023

  1. Move form_builder into internal pkg. (#311)

    * Move form_uilder into internal pkg.
    
    * Fix import of audio.go
    
    * Reorganize.
    
    * Fix import.
    
    * Fix
    
    ---------
    
    Co-authored-by: JoyShi <joy.shi@sap.com>
    JiayueShi and jiayueshi-work authored May 16, 2023
    Configuration menu
    Copy the full SHA
    21eef5b View commit details
    Browse the repository at this point in the history

Commits on May 19, 2023

  1. Azure OpenAI API version 2023-05-15 (#316)

    * chore(config.go): update Azure API version to 2023-05-15 to use the latest version available
    
    * chore(api_internal_test.go): update Azure API version to 2023-05-15 to match the latest version
    iktakahiro authored May 19, 2023
    Configuration menu
    Copy the full SHA
    b62a325 View commit details
    Browse the repository at this point in the history

Commits on May 22, 2023

  1. Update README.md (#319)

    Added in `unofficial` to the README to make it clear it's not official.
    TomHennessy authored May 22, 2023
    Configuration menu
    Copy the full SHA
    faae8b4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a18c18d View commit details
    Browse the repository at this point in the history

Commits on May 27, 2023

  1. Configuration menu
    Copy the full SHA
    980504b View commit details
    Browse the repository at this point in the history

Commits on May 28, 2023

  1. Configuration menu
    Copy the full SHA
    62eb4be View commit details
    Browse the repository at this point in the history

Commits on May 31, 2023

  1. move request_builder into internal pkg (#304) (#329)

    * move request_builder into internal pkg (#304)
    
    * add some test for internal.RequestBuilder
    
    * add a test for openai.GetEngine
    vvatanabe authored May 31, 2023
    Configuration menu
    Copy the full SHA
    61ba5f3 View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2023

  1. Implement optional io.Reader in AudioRequest (#303) (#265) (#331)

    * Implement optional io.Reader in AudioRequest (#303) (#265)
    
    * Fix err shadowing
    
    * Add test to cover AudioRequest io.Reader usage
    
    * Add additional test cases to cover AudioRequest io.Reader usage
    
    * Add test to cover opening the file specified in an AudioRequest
    mdarc authored Jun 5, 2023
    Configuration menu
    Copy the full SHA
    fa694c6 View commit details
    Browse the repository at this point in the history
  2. move error_accumulator into internal pkg (#304) (#335)

    * move error_accumulator into internal pkg (#304)
    
    * move error_accumulator into internal pkg (#304)
    
    * add a test for ErrTooManyEmptyStreamMessages in stream_reader (#304)
    vvatanabe authored Jun 5, 2023
    Configuration menu
    Copy the full SHA
    1394329 View commit details
    Browse the repository at this point in the history
  3. Support Retrieve model API (#340) (#341)

    * Support Retrieve model API (#340)
    
    * Test for GetModel error cases. (#340)
    
    * Reduce the cognitive complexity of TestClientReturnsRequestBuilderErrors (#340)
    vvatanabe authored Jun 5, 2023
    Configuration menu
    Copy the full SHA
    6830e00 View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2023

  1. Refactor streamReader: Replace goto Statement with Loop in Recv Method (

    #339)
    
    * test: Add tests for improved coverage before refactoring
    
    This commit adds tests to improve coverage before refactoring
    to ensure that the changes do not break anything.
    
    * refactor: replace goto statement with loop
    
    This commit introduces a refactor to improve the clarity of the control flow within the method.
    The goto statement can sometimes make the code hard to understand and maintain, hence this refactor aims to resolve that.
    
    * refactor: extract for-loop from Recv to another method
    
    This commit improves code readability and maintainability
    by making the Recv method simpler.
    YukiBobier authored Jun 8, 2023
    Configuration menu
    Copy the full SHA
    b8c13e4 View commit details
    Browse the repository at this point in the history
  2. fix json marshaling error response of azure openai (#343) (#345)

    * fix json marshaling error response of azure openai (#343)
    
    * add a test case for handleErrorResp func (#343)
    vvatanabe authored Jun 8, 2023
    Configuration menu
    Copy the full SHA
    06b16a7 View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2023

  1. Support Retrieve file content API (#347) (#348)

    * Support Retrieve file content API (#347)
    
    * add timeout test for GetFileContent (#347)
    vvatanabe authored Jun 11, 2023
    Configuration menu
    Copy the full SHA
    a243e73 View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2023

  1. Configuration menu
    Copy the full SHA
    b616090 View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2023

  1. models: add *-0613 models (#361)

    Added GPT3Dot5Turbo0613, GPT3Dot5Turbo16K, GPT40613, and GPT432K0613
    models from June update
    (https://openai.com/blog/function-calling-and-other-api-updates)
    
    Issue #360
    simonklee authored Jun 13, 2023
    Configuration menu
    Copy the full SHA
    3f4e3bb View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2023

  1. Improve (#356) to support registration of wildcard URLs (#359)

    * Improve (#356) to support registration of wildcard URLs
    
    * Add TestAzureChatCompletions & TestAzureChatCompletionsWithCustomDeploymentName
    
    * Remove TestAzureChatCompletionsWithCustomDeploymentName
    
    ---------
    
    Co-authored-by: coggsflod <richard.coggins@officedepot.com>
    coggsfl and coggsflod authored Jun 14, 2023
    Configuration menu
    Copy the full SHA
    646989c View commit details
    Browse the repository at this point in the history
  2. Add 16k 0613 model (#365)

    * add 16k_0613 model
    
    * add 16k_0613 model
    
    * add model:
    beichideyuwan authored Jun 14, 2023
    Configuration menu
    Copy the full SHA
    7e76a68 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2023

  1. feat(chat): support function call api (#369)

    * feat(chat): support function call api
    
    * rename struct & add const ChatMessageRoleFunction
    Ccheers authored Jun 15, 2023
    Configuration menu
    Copy the full SHA
    2bd65aa View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    43de771 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0bd14f9 View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2023

  1. add items, which is required for array type (#373)

    * add items, which is required for array type
    
    * use JSONSchemaDefine directly
    nftechie authored Jun 16, 2023
    Configuration menu
    Copy the full SHA
    ac25f31 View commit details
    Browse the repository at this point in the history
  2. audio: add items to AudioResponseFormat enum (#382)

    * audio: add items to AudioResponseFormat enum
    
    * audio: expand AudioResponse struct to accommodate verbose json response
    
    ---------
    
    Co-authored-by: Roman Zubov <rzubov@aintsys.com>
    romazu and Roman Zubov authored Jun 16, 2023
    Configuration menu
    Copy the full SHA
    f0770cf View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2023

  1. Configuration menu
    Copy the full SHA
    e49d771 View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2023

  1. Configuration menu
    Copy the full SHA
    b095938 View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2023

  1. Configuration menu
    Copy the full SHA
    68f9ef9 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2023

  1. Configuration menu
    Copy the full SHA
    7203770 View commit details
    Browse the repository at this point in the history
  2. fix: chat stream returns an error response with a 'data: ' prefix (#396)

    * fix: chat stream resp has 'data: ' prefix
    
    * fix: lint error
    
    * fix: lint error
    
    * fix: lint error
    liushuangls authored Jun 20, 2023
    Configuration menu
    Copy the full SHA
    e948150 View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2023

  1. feat: allow more input types to functions, fix tests (#377)

    * 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>
    stillmatic and James authored Jun 21, 2023
    Configuration menu
    Copy the full SHA
    f22da8a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e19b074 View commit details
    Browse the repository at this point in the history
  3. Update README.md (#399)

    sashabaranov authored Jun 21, 2023
    Configuration menu
    Copy the full SHA
    ffa7abc View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2023

  1. Configuration menu
    Copy the full SHA
    157de06 View commit details
    Browse the repository at this point in the history
  2. refactor: refactoring http request creation and sending (#395)

    * 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.
    vvatanabe authored Jun 22, 2023
    Configuration menu
    Copy the full SHA
    f1b6696 View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2023

  1. Update README.md (#406)

    sashabaranov authored Jun 23, 2023
    Configuration menu
    Copy the full SHA
    5f4ef29 View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2023

  1. move json schema to directory/package (#407)

    * move json schema to directory/package
    
    * added jsonschema to README
    jmacwhyte authored Jun 24, 2023
    Configuration menu
    Copy the full SHA
    0ca4ea4 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2023

  1. Configuration menu
    Copy the full SHA
    a3c0b36 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    581f70b View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2023

  1. Configuration menu
    Copy the full SHA
    86d0f48 View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2023

  1. Configuration menu
    Copy the full SHA
    9c99f36 View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2023

  1. Configuration menu
    Copy the full SHA
    1efcf2d View commit details
    Browse the repository at this point in the history
  2. Fix OpenAI error when properties is empty in function call : object s…

    …chema missing properties (#419)
    
    Co-authored-by: Rick <medivhzhan@icloud.com>
    royalrick and royalmorty authored Jun 30, 2023
    Configuration menu
    Copy the full SHA
    177c143 View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2023

  1. Configuration menu
    Copy the full SHA
    2042608 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2023

  1. Allow embeddings requests to be tokens or strings (#417)

    * 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
    jacksors authored Jul 5, 2023
    Configuration menu
    Copy the full SHA
    5c7d882 View commit details
    Browse the repository at this point in the history
  2. 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'
    vvatanabe authored Jul 5, 2023
    Configuration menu
    Copy the full SHA
    619ad71 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2023

  1. Implement OpenAI July 2023 Updates (#427)

    * Implement OpenAI July 2023 Updates
    
    * fix: golangci-lint
    
    * add comment
    
    * fix: remove some model Deprecated
    liushuangls authored Jul 9, 2023
    Configuration menu
    Copy the full SHA
    7b22898 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    181fc2a View commit details
    Browse the repository at this point in the history
  3. fix: function call error due to nil properties (429) (#431)

    * fix: fix function call error due to nil properties (429)
    
    * refactor: refactoring initializeProperties func in jsonschema pkg (429)
    vvatanabe authored Jul 9, 2023
    Configuration menu
    Copy the full SHA
    f028c28 View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2023

  1. fix: invalid schema for function 'func_name': None is not of type 'ob…

    …ject' (#429)(#432) (#434)
    
    * 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)
    vvatanabe authored Jul 11, 2023
    Configuration menu
    Copy the full SHA
    c3b2451 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2023

  1. Configuration menu
    Copy the full SHA
    39b2acb View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2023

  1. Check if the model param is valid for moderations endpoint (#437)

    * chore: check for models before sending moderation requets to openai endpoint
    
    * chore: table driven tests to include more model cases for moderations endpoint
    MunarYesen authored Jul 13, 2023
    Configuration menu
    Copy the full SHA
    e22a29d View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2023

  1. add example: fine tune (#438)

    * add example for fine tune
    
    * update example for fine tune
    
    * fix comments
    mehulgohil authored Jul 14, 2023
    Configuration menu
    Copy the full SHA
    0234c1e View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2023

  1. update to json.RawMessage (#441)

    Savannah Ostrowski authored Jul 15, 2023
    Configuration menu
    Copy the full SHA
    1876e0c View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2023

  1. Configuration menu
    Copy the full SHA
    1153eb2 View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2023

  1. Configuration menu
    Copy the full SHA
    62dc817 View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2023

  1. 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>
    vvatanabe and sashabaranov authored Jul 30, 2023
    Configuration menu
    Copy the full SHA
    71a2493 View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2023

  1. Compatible with the 2023-07-01-preview API interface of Azure Openai,…

    … when content interception is triggered, the error message will contain innererror (#460)
    
    * 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.
    ZeroDeng01 authored Aug 9, 2023
    Configuration menu
    Copy the full SHA
    3456989 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a14bc10 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2023

  1. feat: implement new fine tuning job API (#479)

    * 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
    henomis authored Aug 29, 2023
    Configuration menu
    Copy the full SHA
    a2ca01b View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2023

  1. Chore Deprecate legacy fine tunes API (#484)

    * chore: add deprecation message
    
    * chore: use new fine tuning API in README example
    henomis authored Aug 31, 2023
    Configuration menu
    Copy the full SHA
    25da859 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2023

  1. Update OpenAPI file return struct (#486)

    * completionBatchingRequestSupport
    
    * lint fix
    
    * fix Run test fail
    
    * fix TestClientReturnsRequestBuilderErrors fail
    
    * fix Codecov  check
    
    * ignore TestClientReturnsRequestBuilderErrors lint
    
    * fix lint again
    
    * lint again*2
    
    * replace checkPromptType  implementation
    
    * remove nil check
    
    * update file return struct
    
    ---------
    
    Co-authored-by: W <825708370@qq.com>
    NullpointerW and W authored Sep 7, 2023
    Configuration menu
    Copy the full SHA
    3589837 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2023

  1. Chore Support base64 embedding format (#485)

    * chore: support base64 embedding format
    
    * fix: add sizeOfFloat32
    
    * chore: refactor base64 decoding
    
    * chore: add tests
    
    * fix linting
    
    * fix test
    
    * fix return error
    
    * fix: use smaller slice for tests
    
    * fix [skip ci]
    
    * chore: refactor test to consider CreateEmbeddings response
    
    * trigger build
    
    * chore: remove named returns
    
    * chore: refactor code to simplify the understanding
    
    * chore: tests have been refactored to match the encoding format passed by request
    
    * chore: fix tests
    
    * fix
    
    * fix
    henomis authored Sep 11, 2023
    Configuration menu
    Copy the full SHA
    8e4b796 View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2023

  1. Configuration menu
    Copy the full SHA
    0d5256f View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2023

  1. Add DotProduct Method and README Example for Embedding Similarity Sea…

    …rch (#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
    ealvar3z authored Oct 2, 2023
    Configuration menu
    Copy the full SHA
    84f77a0 View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2023

  1. fix: use any for n_epochs (#499)

    * fix: use custom marshaler for n_epochs
    
    * chore: use any for n_epochs
    henomis authored Oct 6, 2023
    Configuration menu
    Copy the full SHA
    533935e View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2023

  1. Feat Add headers to openai responses (#506)

    * feat: add headers to http response
    
    * chore: add test
    
    * fix: rename to httpHeader
    henomis authored Oct 9, 2023
    Configuration menu
    Copy the full SHA
    8e165dc View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2023

  1. Support get http header and x-ratelimit-* headers (#507)

    * feat: add headers to http response
    
    * feat: support rate limit headers
    
    * fix: go lint
    
    * fix: test coverage
    
    * refactor streamReader
    
    * refactor streamReader
    
    * refactor: NewRateLimitHeaders to newRateLimitHeaders
    
    * refactor: RateLimitHeaders Resets filed
    
    * refactor: move RateLimitHeaders struct
    liushuangls authored Oct 10, 2023
    Configuration menu
    Copy the full SHA
    b77d01e View commit details
    Browse the repository at this point in the history
  2. Update README.md (#511)

    sashabaranov authored Oct 10, 2023
    Configuration menu
    Copy the full SHA
    c47ddfc View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2023

  1. feat(completion): add constants for new GPT models (#520)

    Added constants for new GPT models including `gpt-4-1106-preview`,
    `gpt-4-vision-preview` and `gpt-3.5-turbo-1106`.
    
    The models were announced in the following blog post: https://openai.com/blog/new-models-and-developer-products-announced-at-devday
    simonklee authored Nov 6, 2023
    Configuration menu
    Copy the full SHA
    6c52952 View commit details
    Browse the repository at this point in the history
  2. Fix typo in README: AdaEmbeddingV2 (#516)

    Copy-pasting the old sample caused compilation errors
    eliben authored Nov 6, 2023
    Configuration menu
    Copy the full SHA
    9e0232f View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2023

  1. Configuration menu
    Copy the full SHA
    0664105 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d07833e View commit details
    Browse the repository at this point in the history
  3. Feat Support chat completion response format and seed new fields (#525)

    * feat: support chat completion response format
    
    * fix linting error
    
    * fix
    
    * fix linting
    
    * Revert "fix linting"
    
    This reverts commit 015c6ad.
    
    * Revert "fix"
    
    This reverts commit 7b2ffe2.
    
    * Revert "fix linting error"
    
    This reverts commit 2996042.
    
    * chore: add seed new parameter
    
    * fix
    henomis authored Nov 7, 2023
    Configuration menu
    Copy the full SHA
    6d9c3a6 View commit details
    Browse the repository at this point in the history
  4. Feat Implement assistants API (#535)

    * chore: implement assistants API
    
    * fix
    
    * fix
    
    * chore: add tests
    
    * fix tests
    
    * fix linting
    henomis authored Nov 7, 2023
    Configuration menu
    Copy the full SHA
    3063e67 View commit details
    Browse the repository at this point in the history
  5. Feat Support tools and tools choice new fileds (#526)

    * feat: support tools and tools choice new fileds
    
    * fix: use value not pointers
    henomis authored Nov 7, 2023
    Configuration menu
    Copy the full SHA
    1ad6b6f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a20eb08 View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2023

  1. Support new fields for /v1/images/generation API (#530)

    * add support for new image/generation api
    
    * fix one lint
    
    * add revised_prompt to response
    
    * fix lints
    
    * add CreateImageQualityStandard
    mikecutalo authored Nov 8, 2023
    Configuration menu
    Copy the full SHA
    a0159ad View commit details
    Browse the repository at this point in the history
  2. Fix Refactor assistant api (#545)

    * fix: refactor assistant API
    
    * fix
    
    * trigger build
    
    * fix: use AssistantDeleteResponse
    henomis authored Nov 8, 2023
    Configuration menu
    Copy the full SHA
    a2d2bf6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    08c167f View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2023

  1. Feat Implement threads API (#536)

    * feat: implement threads API
    
    * fix
    
    * add tests
    
    * fix
    
    * trigger£
    
    * trigger
    
    * chore: add beta header
    henomis authored Nov 9, 2023
    Configuration menu
    Copy the full SHA
    bc89139 View commit details
    Browse the repository at this point in the history
  2. Add SystemFingerprint and chatMsg.ToolCallID field (#543)

    * fix ToolChoiche typo
    
    * add tool_call_id to ChatCompletionMessage
    
    * add /chat system_fingerprint response field
    
    * check empty ToolCallID JSON marshaling
    
    and add omitempty for tool_call_id
    
    * messages also required; don't omitempty
    
    * add Type to ToolCall, required by the API
    
    * fix test, omitempty for response_format ptr
    
    * fix casing of role values in comments
    gburt authored Nov 9, 2023
    Configuration menu
    Copy the full SHA
    e3e065d View commit details
    Browse the repository at this point in the history
  3. fix test server setup: (#549)

    * fix test server setup:
    - go map access is not deterministic
    - this can lead to a route: /foo/bar/1 matching /foo/bar before matching /foo/bar/1 if the map iteration go through /foo/bar first since the regex match wasn't bound to start and end anchors
    - registering handlers now converts * in routes to .* for proper regex matching
    - test server route handling now tries to fully match the handler route
    
    * add missing /v1 prefix to fine-tuning job cancel test server handler
    urjitbhatia authored Nov 9, 2023
    Configuration menu
    Copy the full SHA
    8127072 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    78862a2 View commit details
    Browse the repository at this point in the history
  5. Feat implement Run APIs (#560)

    * chore: first commit
    
    * add apis
    
    * chore: add tests
    
    * feat add apis
    
    * chore: add api and tests
    
    * chore: add tests
    
    * fix
    
    * trigger build
    
    * fix
    
    * chore: formatting code
    
    * chore: add pagination type
    henomis authored Nov 9, 2023
    Configuration menu
    Copy the full SHA
    d6f3bdc View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2023

  1. Configuration menu
    Copy the full SHA
    35495cc View commit details
    Browse the repository at this point in the history
  2. Fix typo in chat_test.go (#564)

    requetsts -> requests
    eltociear authored Nov 12, 2023
    Configuration menu
    Copy the full SHA
    9fefd50 View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2023

  1. Feat/messages api (#546)

    * fix test server setup:
    - go map access is not deterministic
    - this can lead to a route: /foo/bar/1 matching /foo/bar before matching /foo/bar/1 if the map iteration go through /foo/bar first since the regex match wasn't bound to start and end anchors
    - registering handlers now converts * in routes to .* for proper regex matching
    - test server route handling now tries to fully match the handler route
    
    * add missing /v1 prefix to fine-tuning job cancel test server handler
    
    * add create message call
    
    * add messages list call
    
    * add get message call
    
    * add modify message call, fix return types for other message calls
    
    * add message file retrieve call
    
    * add list message files call
    
    * code style fixes
    
    * add test for list messages with pagination options
    
    * add beta header to msg calls now that #545 is merged
    
    * Update messages.go
    
    Co-authored-by: Simone Vellei <henomis@gmail.com>
    
    * Update messages.go
    
    Co-authored-by: Simone Vellei <henomis@gmail.com>
    
    * add missing object details for message, fix tests
    
    * fix merge formatting
    
    * minor style fixes
    
    ---------
    
    Co-authored-by: Simone Vellei <henomis@gmail.com>
    urjitbhatia and henomis authored Nov 13, 2023
    Configuration menu
    Copy the full SHA
    b7cac70 View commit details
    Browse the repository at this point in the history
  2. feat: initial TTS support (#528)

    * feat: initial TTS support
    
    * chore: lint, omitempty
    
    * chore: dont use pointer in struct
    
    * fix: add mocked server tests to speech_test.go
    
    Co-authored-by: Lachlan Laycock <supagroova@gmail.com>
    
    * chore: update imports
    
    * chore: fix lint
    
    * chore: add an error check
    
    * chore: ignore lint
    
    * chore: add error checks in package
    
    * chore: add test
    
    * chore: fix test
    
    ---------
    
    Co-authored-by: Lachlan Laycock <supagroova@gmail.com>
    stillmatic and supagroova authored Nov 13, 2023
    Configuration menu
    Copy the full SHA
    515de02 View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2023

  1. Configuration menu
    Copy the full SHA
    fe67abb View commit details
    Browse the repository at this point in the history
  2. feat: support direct bytes for file upload (#568)

    * feat: support direct bytes for file upload
    
    * add test for errors
    
    * add coverage
    floodfx authored Nov 15, 2023
    Configuration menu
    Copy the full SHA
    71848cc View commit details
    Browse the repository at this point in the history
  3. Pagination fields are missing from assistants list beta API (#571)

    curl "https://api.openai.com/v1/assistants?order=desc&limit=20" \
      -H "Content-Type: application/json" \
      -H "Authorization: Bearer $OPENAI_API_KEY" \
      -H "OpenAI-Beta: assistants=v1"
    {
      "object": "list",
      "data": [],
      "first_id": null,
      "last_id": null,
      "has_more": false
    }
    liron-l authored Nov 15, 2023
    Configuration menu
    Copy the full SHA
    464b85b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3220f19 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1846572 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2023

  1. Add File purposes as constants (#577)

    * Add purposes.
    
    * Formatting.
    revett authored Nov 18, 2023
    Configuration menu
    Copy the full SHA
    4fd904c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9efad28 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a130cfe View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2023

  1. Add canary-tts to speech models (#603)

    Co-authored-by: Peter Juhasz <juhasz.peter@uhusystems.com>
    pjuhasz and juhaszp-uhu authored Nov 24, 2023
    Configuration menu
    Copy the full SHA
    f879095 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7260991 View commit details
    Browse the repository at this point in the history
  3. Add support for multi part chat messages (and gpt-4-vision-preview mo…

    …del) (#580)
    
    * Add support for multi part chat messages
    
    OpenAI has recently introduced a new model called gpt-4-visual-preview,
    which now supports images as input. The chat completion endpoint accepts
    multi-part chat messages, where the content can be an array of structs
    in addition to the usual string format.
    
    This commit introduces new structures and constants to represent
    different types of content parts. It also implements the json.Marshaler
    and json.Unmarshaler interfaces on ChatCompletionMessage.
    
    * Add ImageURLDetail and ChatMessagePartType types
    
    * Optimize ChatCompletionMessage deserialization
    
    * Add ErrContentFieldsMisused error
    rkintzi authored Nov 24, 2023
    Configuration menu
    Copy the full SHA
    03caea8 View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2023

  1. Add completion-with-tool example (#598)

    As a user of this go SDK it was not immediately intuitive to me how to
    correctly utilize the function calling capability of GPT4
    (https://platform.openai.com/docs/guides/function-calling). While the
    aformentioned link provides a helpful example written in python, I
    initially tripped over how to correclty translate the specification of
    function arguments when usingthis go SDK.
    
    To make it easier for others in the future this commit adds a
    completion-with-tool example showing how to correctly utilize the
    function calling capability of GPT4 using this SDK end-to-end in a
    CreateChatCompletion() sequence.
    mikeb26 authored Nov 26, 2023
    Configuration menu
    Copy the full SHA
    a09cb0c View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2024

  1. Configuration menu
    Copy the full SHA
    c9615e0 View commit details
    Browse the repository at this point in the history

Commits on Jan 9, 2024

  1. Log probabilities for chat completion output tokens (#625)

    * Add logprobs
    
    * Logprobs pointer
    
    * Move toplogporbs
    
    * Create toplogprobs struct
    
    * Remove pointers
    danai-antoniou authored Jan 9, 2024
    Configuration menu
    Copy the full SHA
    f10955c View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2024

  1. Update README.md (#631)

    Ensure variables in examples are valid
    Kledal authored Jan 11, 2024
    Configuration menu
    Copy the full SHA
    682b7ad View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2024

  1. convert EmbeddingModel to string type (#629)

    This gives the user the ability to pass in models for embeddings that are not
    already defined in the library. Also more closely matches how the completions
    API works.
    jaffee authored Jan 15, 2024
    Configuration menu
    Copy the full SHA
    e01a2d7 View commit details
    Browse the repository at this point in the history
  2. fixed #594 (#609)

    APITypeAzure dall-e3 model url
    
    Co-authored-by: HanHongmin <hanhongmin@inmyshow.com>
    HongminHan and HanHongmin authored Jan 15, 2024
    Configuration menu
    Copy the full SHA
    09f6920 View commit details
    Browse the repository at this point in the history

Commits on Jan 16, 2024

  1. Configuration menu
    Copy the full SHA
    4ce03a9 View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2024

  1. fix(audio): fix audioTextResponse decode (#638)

    * fix(audio): fix audioTextResponse decode
    
    * test(audio): add audioTextResponse decode test
    
    * test(audio): simplify code
    WqyJh authored Jan 17, 2024
    Configuration menu
    Copy the full SHA
    eff8dc1 View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2024

  1. Configuration menu
    Copy the full SHA
    4c41f24 View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2024

  1. Add new struct filed dimensions for embedding API (#645)

    * add new struct filed dimensions for embedding API
    
    * docs: remove long single-line comments
    
    * change embedding request param Dimensions type to int
    chenhhA authored Jan 29, 2024
    Configuration menu
    Copy the full SHA
    06ff541 View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2024

  1. Configuration menu
    Copy the full SHA
    bc8cdd3 View commit details
    Browse the repository at this point in the history
  2. Fix: Add RunStatusCancelled (#650)

    Co-authored-by: shadowpigy <shadowpigy@github.com>
    shadowpigy and shadowpigy authored Feb 2, 2024
    Configuration menu
    Copy the full SHA
    bb6ed54 View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2024

  1. Configuration menu
    Copy the full SHA
    69e3fcb View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2024

  1. Configuration menu
    Copy the full SHA
    6c2e316 View commit details
    Browse the repository at this point in the history
  2. Feat: Add assistant usage (#649)

    * Feat: Add assistant usage
    
    ---------
    
    Co-authored-by: shadowpigy <shadowpigy@github.com>
    shadowpigy and shadowpigy authored Feb 8, 2024
    Configuration menu
    Copy the full SHA
    a7954c8 View commit details
    Browse the repository at this point in the history

Commits on Feb 15, 2024

  1. Configuration menu
    Copy the full SHA
    11ad4b6 View commit details
    Browse the repository at this point in the history
  2. Content-type fix (#659)

    * charset fixes
    
    * make linter happy (#661)
    
    ---------
    
    Co-authored-by: grulex <god@vk.com>
    Co-authored-by: Alexander Baranov <677093+sashabaranov@users.noreply.github.com>
    3 people authored Feb 15, 2024
    Configuration menu
    Copy the full SHA
    66bae3e View commit details
    Browse the repository at this point in the history
  3. Add RunRequest field AdditionalInstructions (#656)

    AdditionalInstructions is an optional string field used to append
    additional instructions at the end of the instructions for the run. This
    is useful for modifying the behavior on a per-run basis without
    overriding other instructions.
    
    Also, change the Model and Instructions *string fields to string.
    chrbsg authored Feb 15, 2024
    Configuration menu
    Copy the full SHA
    ff61bbb View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2024

  1. Update client.go - allow to skip Authorization header (#658)

    * Update client.go - allow to skip Authorization header
    
    * Update client.go
    7flash authored Feb 16, 2024
    Configuration menu
    Copy the full SHA
    69e3bbb View commit details
    Browse the repository at this point in the history

Commits on Feb 19, 2024

  1. fix:fix open ai original validation. modify Tool's Function to pointer (

    #664)
    
    Co-authored-by: caopengfei1 <caopengfei1@tal.com>
    CaoPengflying and caopengfei1-tal authored Feb 19, 2024
    Configuration menu
    Copy the full SHA
    e8b3478 View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2024

  1. Fix for broken Azure Assistants url (#665)

    * fix:fix url for Azure assistants api
    
    * test:add unit tests for Azure Assistants api
    
    * fix:minor liniting issue
    coggsflod authored Feb 21, 2024
    Configuration menu
    Copy the full SHA
    7381d18 View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2024

  1. Configuration menu
    Copy the full SHA
    c5401e9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f220443 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4103778 View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2024

  1. Configuration menu
    Copy the full SHA
    bb6149f View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2024

  1. Added 'wav' and 'pcm' Audio Formats (#671)

    * Added 'wav' and 'pcm' Audio Formats
    
    Added "wav" and "pcm" audio formats as per OpenAI API documentation for createSpeech endpoint. 
    Ref: https://platform.openai.com/docs/api-reference/audio/createSpeech
    Supported formats are mp3, opus, aac, flac, wav, and pcm.
    
    * Removed Extra Newline for Sanity Check
    
    * fix: run goimports to get accepted by the linter
    LinuxSploit authored Mar 7, 2024
    Configuration menu
    Copy the full SHA
    38b16a3 View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2024

  1. Configuration menu
    Copy the full SHA
    699f397 View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2024

  1. Fix broken implementation AssistantModify implementation (#685)

    * add custom marshaller, documentation and isolate tests
    
    * fix linter
    qhenkart authored Mar 15, 2024
    Configuration menu
    Copy the full SHA
    0925563 View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2024

  1. feat: get header from sendRequestRaw (#694)

    * feat: get header from sendRequestRaw
    
    * Fix ci lint
    WqyJh authored Apr 5, 2024
    Configuration menu
    Copy the full SHA
    2646bce View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    774fc9d View commit details
    Browse the repository at this point in the history

Commits on Apr 9, 2024

  1. [BREAKING_CHANGES] Fix update message payload (#699)

    * add custom marshaller, documentation and isolate tests
    
    * fix linter
    
    * wrap payload as expected from the API and update test
    
    * modify input to accept map[string]string only
    qhenkart authored Apr 9, 2024
    Configuration menu
    Copy the full SHA
    187f416 View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2024

  1. Configuration menu
    Copy the full SHA
    e0d0801 View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2024

  1. Fixing typos (#706)

    deining authored Apr 13, 2024
    Configuration menu
    Copy the full SHA
    ea551f4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2446f08 View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2024

  1. [New_Features] Adds recently added Assistant cost saving parameters (#…

    …710)
    
    * add cost saving parameters
    
    * add periods at the end of comments
    
    * shorten commnet
    
    * further lower comment length
    
    * fix type
    qhenkart authored Apr 16, 2024
    Configuration menu
    Copy the full SHA
    a42f519 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c6a63ed View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2024

  1. Configuration menu
    Copy the full SHA
    8d15a37 View commit details
    Browse the repository at this point in the history
  2. chore: add SystemFingerprint for chat completion stream response (#716)

    * chore: add SystemFingerprint for stream response
    
    * chore: add test
    
    * lint: format for test
    winrey authored Apr 24, 2024
    Configuration menu
    Copy the full SHA
    2d58f8f View commit details
    Browse the repository at this point in the history
  3. feat: support cloudflare AI Gateway flavored azure openai (#715)

    * feat: support cloudflare AI Gateway flavored azure openai
    
    Signed-off-by: STRRL <im@strrl.dev>
    
    * test: add test for cloudflare azure fullURL
    
    ---------
    
    Signed-off-by: STRRL <im@strrl.dev>
    Co-authored-by: STRRL <im@strrl.dev>
    woorui and STRRL authored Apr 24, 2024
    Configuration menu
    Copy the full SHA
    c84ab5f View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2024

  1. Fixup minor copy-pasta comment typo (#728)

    imagess ->  images
    agcom authored Apr 27, 2024
    Configuration menu
    Copy the full SHA
    c9953a7 View commit details
    Browse the repository at this point in the history

Commits on May 7, 2024

  1. Add support for word-level audio transcription timestamp granularity (#…

    …733)
    
    * Add support for audio transcription timestamp_granularities word
    
    * Fixup multiple timestamp granularities
    agcom authored May 7, 2024
    Configuration menu
    Copy the full SHA
    3334a9c View commit details
    Browse the repository at this point in the history
  2. feat: support stream_options (#736)

    * feat: support stream_options
    
    * fix lint
    
    * fix lint
    liushuangls authored May 7, 2024
    Configuration menu
    Copy the full SHA
    6af3220 View commit details
    Browse the repository at this point in the history

Commits on May 13, 2024

  1. Configuration menu
    Copy the full SHA
    3b25e09 View commit details
    Browse the repository at this point in the history
  2. Add gpt4o (#742)

    * Add gpt4o
    
    * disabled model for endpoint
    
    seen in e0d0801
    
    * Update completion.go
    
    ---------
    
    Co-authored-by: Alexander Baranov <677093+sashabaranov@users.noreply.github.com>
    nullswan and sashabaranov authored May 13, 2024
    Configuration menu
    Copy the full SHA
    9f19d1c View commit details
    Browse the repository at this point in the history
  3. 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 #494
    
    * Update README.md
    
    ---------
    
    Co-authored-by: Alexander Baranov <677093+sashabaranov@users.noreply.github.com>
    Kshirodram and sashabaranov authored May 13, 2024
    Configuration menu
    Copy the full SHA
    4f4a856 View commit details
    Browse the repository at this point in the history

Commits on May 24, 2024

  1. Update client.go to get response header whether there is an error or …

    …not. (#751)
    
    Update client.go to get response header whether there is an error or not. Because 429 Too Many Requests error response has "Retry-After" header.
    ando-masaki authored May 24, 2024
    Configuration menu
    Copy the full SHA
    211cb49 View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2024

  1. Configuration menu
    Copy the full SHA
    30cf7b8 View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2024

  1. Configuration menu
    Copy the full SHA
    8618492 View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2024

  1. Fix integration test (#762)

    * added TestCompletionStream test
    
    moved completion stream testing to seperate function
    added NoErrorF
    fixes nil pointer reference on stream object
    
    * update integration test models
    TheAdamSmith authored Jun 13, 2024
    Configuration menu
    Copy the full SHA
    fd41f7a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7e96c71 View commit details
    Browse the repository at this point in the history
  3. integration tests: pass openai secret (#770)

    * pass openai secret
    
    * only run in master branch
    sashabaranov authored Jun 13, 2024
    Configuration menu
    Copy the full SHA
    c69c3bb View commit details
    Browse the repository at this point in the history
  4. feat: support batches api (#746)

    * feat: support batches api
    
    * update batch_test.go
    
    * fix golangci-lint check
    
    * fix golangci-lint check
    
    * fix tests coverage
    
    * fix tests coverage
    
    * fix tests coverage
    
    * fix tests coverage
    
    * fix tests coverage
    
    * fix tests coverage
    
    * fix tests coverage
    
    * fix: create batch api
    
    * update batch_test.go
    
    * feat: add `CreateBatchWithUploadFile`
    
    * feat: add `UploadBatchFile`
    
    * optimize variable and type naming
    
    * expose `BatchLineItem` interface
    
    * update batches const
    eiixy authored Jun 13, 2024
    Configuration menu
    Copy the full SHA
    99cc170 View commit details
    Browse the repository at this point in the history
  5. Support Tool Resources properties for Threads (#760)

    * Support Tool Resources properties for Threads
    
    * Add Chunking Strategy for Threads vector stores
    pkosiec authored Jun 13, 2024
    Configuration menu
    Copy the full SHA
    68acf22 View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2024

  1. feat: provide vector store (#772)

    * implement vectore store feature
    
    * fix after integration testing
    
    * fix golint error
    
    * improve test to increare code coverage
    
    * fix golint anc code coverage problem
    
    * add tool_resource in assistant response
    
    * chore: code style
    
    * feat: use pagination param
    
    * feat: use pagination param
    
    * test: use pagination param
    
    * test: rm unused code
    
    ---------
    
    Co-authored-by: Denny Depok <61371551+kodernubie@users.noreply.github.com>
    Co-authored-by: eric.p <eric.p>
    Pengguancheng and kodernubie authored Jun 19, 2024
    Configuration menu
    Copy the full SHA
    0a42130 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2024

  1. Configuration menu
    Copy the full SHA
    e311859 View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2024

  1. Configuration menu
    Copy the full SHA
    03851d2 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2024

  1. feat: ParallelToolCalls to ChatCompletionRequest with helper functions (

    #787)
    
    * added ParallelToolCalls to ChatCompletionRequest with helper functions
    
    * added tests for coverage
    
    * changed ParallelToolCalls to any
    structwafel authored Jul 12, 2024
    Configuration menu
    Copy the full SHA
    727944c View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2024

  1. fix: #790 (#798)

    eiixy authored Jul 19, 2024
    Configuration menu
    Copy the full SHA
    3e47e6f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    27c1c56 View commit details
    Browse the repository at this point in the history
  3. fix: #794 (#797)

    eiixy authored Jul 19, 2024
    Configuration menu
    Copy the full SHA
    92f4830 View commit details
    Browse the repository at this point in the history
  4. fix: Updated ThreadMessage struct with latest fields based on OpenAI …

    …docs (#792)
    
    * fix: Updated ThreadMessage struct with latest fields based on OpenAI docs
    
    * fix: Reverted FileIDs for backward compatibility of v1
    ecoralic authored Jul 19, 2024
    Configuration menu
    Copy the full SHA
    ae903d7 View commit details
    Browse the repository at this point in the history
  5. add hyperparams (#793)

    janukobytsch authored Jul 19, 2024
    Configuration menu
    Copy the full SHA
    a7e9f0e View commit details
    Browse the repository at this point in the history
  6. Add New Optional Parameters to AssistantRequest Struct (#795)

    * Add more parameters to support Assistant v2
    
    * Add goimports
    Vanessamae23 authored Jul 19, 2024
    Configuration menu
    Copy the full SHA
    966ee68 View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2024

  1. fix: #804 (#807)

    eiixy authored Jul 28, 2024
    Configuration menu
    Copy the full SHA
    581da2f View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2024

  1. Add support for gpt-4o-2024-08-06 (#812)

    * feat: Add GPT-4o Mini model support
    
    * feat: Add GPT-4o-2024-08-06 model support
    danielchalef authored Aug 7, 2024
    Configuration menu
    Copy the full SHA
    dbe726c View commit details
    Browse the repository at this point in the history
  2. feat: Support Structured Outputs (#813)

    * feat: Support Structured Outputs
    
    * feat: Support Structured Outputs
    
    * update imports
    
    * add integration test
    
    * update JSON schema comments
    eiixy authored Aug 7, 2024
    Configuration menu
    Copy the full SHA
    623074c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6439e1f View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2024

  1. Run integration tests for PRs (#823)

    * Unbreak integration tests
    
    * Update integration-tests.yml
    HaraldNordgren authored Aug 9, 2024
    Configuration menu
    Copy the full SHA
    1880333 View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2024

  1. fix: #788 (#800)

    eiixy authored Aug 10, 2024
    Configuration menu
    Copy the full SHA
    2c6889e View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2024

  1. Configuration menu
    Copy the full SHA
    dd7f582 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d86425a View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2024

  1. feat: Support Delete Message API (#799)

    * feat: Add DeleteMessage function to API client
    
    * fix: linter
    
    nolint : Deprecated method
    split function: cognitive complexity 21
    
    * rename func name for unit-test
    kappa-lab authored Aug 22, 2024
    Configuration menu
    Copy the full SHA
    6d02119 View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2024

  1. Configuration menu
    Copy the full SHA
    5162adb View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2024

  1. 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
    eiixy authored Aug 24, 2024
    Configuration menu
    Copy the full SHA
    a3bd256 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    030b7cb View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2024

  1. Dynamic model (#838)

    mathisen99 authored Sep 1, 2024
    Configuration menu
    Copy the full SHA
    c37cf9a View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2024

  1. depricated model GPT3Ada changed to GPT3Babbage002 (#843)

    * depricated model GPT3Ada changed to GPT3Babbage002
    
    * Delete test.mp3
    Arundas666 authored Sep 4, 2024
    Configuration menu
    Copy the full SHA
    643da8d View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2024

  1. Add refusal (#844)

    * add custom marshaller, documentation and isolate tests
    
    * fix linter
    
    * add missing field
    qhenkart authored Sep 11, 2024
    Configuration menu
    Copy the full SHA
    194a03e View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2024

  1. Configuration menu
    Copy the full SHA
    a5fb553 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2024

  1. Configuration menu
    Copy the full SHA
    1ec8c24 View commit details
    Browse the repository at this point in the history
  2. add max_completions_tokens for o1 series models (#857)

    * add max_completions_tokens for o1 series models
    
    * add validation for o1 series models validataion + beta limitations
    chococola authored Sep 20, 2024
    Configuration menu
    Copy the full SHA
    9add1c3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9a4f3a7 View commit details
    Browse the repository at this point in the history
  4. run_id string Optional (#855)

    Filter messages by the run ID that generated them.
    
    Co-authored-by: wappi <support@wappi.pro>
    floodwm and wappipro authored Sep 20, 2024
    Configuration menu
    Copy the full SHA
    e095df5 View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2024

  1. Optimize Client Error Return (#856)

    * update client error return
    
    * update client_test.go
    
    * update client_test.go
    
    * update file_api_test.go
    
    * update client_test.go
    
    * update client_test.go
    eiixy authored Sep 26, 2024
    Configuration menu
    Copy the full SHA
    38bdc81 View commit details
    Browse the repository at this point in the history
  2. Fix max_completion_tokens (#860)

    The json tag is incorrect, and results in an error from the API when using the o1 model.  
    
    I didn't modify the struct field name to maintain compatibility if anyone else had started using it, but it wouldn't work for them either.
    alexsacr authored Sep 26, 2024
    Configuration menu
    Copy the full SHA
    7f80303 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e9d8485 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    fdd59d9 View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2024

  1. fix MaxCompletionTokens typo (#862)

    * fix spelling error
    
    * fix lint
    
    * Update chat.go
    
    * Update chat.go
    l-winston authored Oct 3, 2024
    Configuration menu
    Copy the full SHA
    bac7d59 View commit details
    Browse the repository at this point in the history
  2. add jailbreak filter result, add ContentFilterResults on output (#864)

    * add jailbreak filter result
    
    * add content filter results on completion output
    
    * add profanity content filter
    juliomartinsdev authored Oct 3, 2024
    Configuration menu
    Copy the full SHA
    7c145eb View commit details
    Browse the repository at this point in the history