Skip to content

Conversation

zyysxz
Copy link

@zyysxz zyysxz commented Jul 23, 2025

Summary

  • Fixes OpenAI tool name length limit:
    Ensures that tool names passed to OpenAI LLMs do not exceed the 64-character restriction, preventing related errors.

  • Key changes:

    • Updates logic in src/routes/messages/non-stream-translation.ts to filter or truncate tool names as required by OpenAI.
  • Impact:
    Improves compatibility with OpenAI LLMs and prevents tool name length errors.

@ericc-ch
Copy link
Owner

This looks good, thanks!
Btw does this apply to all OpenAI models or just gpt?
And also we might have to document this limitation in the readme

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