Skip to content

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

Merged
techmahedy merged 19 commits intodoppar:techmahedy-1.xfrom
techmahedy:techmahedy-1.x
Dec 31, 2025
Merged

Updated options params index [max_tokens] to [max_output_tokens]#33
techmahedy merged 19 commits intodoppar:techmahedy-1.xfrom
techmahedy: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.

@techmahedy techmahedy merged commit 358d894 into doppar:techmahedy-1.x Dec 31, 2025
5 checks passed
techmahedy added a commit that referenced this pull request Dec 31, 2025
Updated options params index [max_tokens] to [max_output_tokens] #33
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.

2 participants