Skip to content

Updated options params index [max_tokens] to [max_output_tokens] #33#34

Merged
techmahedy merged 2 commits into1.xfrom
techmahedy-1.x
Dec 31, 2025
Merged

Updated options params index [max_tokens] to [max_output_tokens] #33#34
techmahedy merged 2 commits into1.xfrom
techmahedy-1.x

Conversation

@techmahedy
Copy link
Copy Markdown
Member

Previous:

 /**
   * Set max tokens
   *
   * @param int $tokens
   * @return self
   */
  public function maxTokens(int $tokens): self
  {
      $this->params['max_tokens'] = $tokens;

      return $this;
  }

Now:

 /**
   * Set max tokens
   *
   * @param int $tokens
   * @return self
   */
  public function maxTokens(int $tokens): self
  {
      $this->params['max_output_tokens'] = $tokens;

      return $this;
  }

Now this is compatible with symfony v0.1 version.

Arif Hoque and others added 2 commits December 31, 2025 12:03
Updated options params index [max_tokens] to [max_output_tokens]
@techmahedy techmahedy merged commit 17541fd into 1.x Dec 31, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant