Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: sashabaranov/go-openai
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.38.3
Choose a base ref
...
head repository: sashabaranov/go-openai
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.39.0
Choose a head ref
  • 6 commits
  • 12 files changed
  • 6 contributors

Commits on Apr 29, 2025

  1. Add support for reasoning_content field in chat completion messages f…

    …or DeepSeek R1 (#925)
    
    * support deepseek field "reasoning_content"
    
    * support deepseek field "reasoning_content"
    
    * Comment ends in a period (godot)
    
    * add comment on field reasoning_content
    
    * fix go lint error
    
    * chore: trigger CI
    
    * make field "content" in MarshalJSON function omitempty
    
    * remove reasoning_content in TestO1ModelChatCompletions func
    
    * feat: Add test and handler for deepseek-reasoner chat model completions, including support for reasoning content in responses.
    
    * feat: Add test and handler for deepseek-reasoner chat model completions, including support for reasoning content in responses.
    
    * feat: Add test and handler for deepseek-reasoner chat model completions, including support for reasoning content in responses.
    goodenough227 authored Apr 29, 2025
    Configuration menu
    Copy the full SHA
    306fbbb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4cccc6c View commit details
    Browse the repository at this point in the history
  3. Add support for 4o-mini and 3o (#968)

    - This adds supports, and tests, for the 3o and 4o-mini class of models
    rorymalcolm authored Apr 29, 2025
    Configuration menu
    Copy the full SHA
    bb5bc27 View commit details
    Browse the repository at this point in the history
  4. Add CompletionRequest.StreamOptions (#959)

    The legacy completion API supports a `stream_options` object when
    `stream` is set to true [0]. This adds a StreamOptions property to the
    CompletionRequest struct to support this setting.
    
    [0] https://platform.openai.com/docs/api-reference/completions/create#completions-create-stream_options
    
    Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
    stmcginnis authored Apr 29, 2025
    Configuration menu
    Copy the full SHA
    da5f9bc View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6836cf6 View commit details
    Browse the repository at this point in the history
  6. Add Prediction field (#970)

    * Add Prediction field to ChatCompletionRequest
    
    * Include prediction tokens in response
    danielpeng2 authored Apr 29, 2025
    Configuration menu
    Copy the full SHA
    93a611c View commit details
    Browse the repository at this point in the history
Loading