Skip to content

docs: improve sentiments example model compatibility #385

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

Merged
merged 1 commit into from
May 23, 2024

Conversation

njhale
Copy link
Member

@njhale njhale commented May 23, 2024

Description

Re-engineer the sentiments.gpt example tool body prompt wording so that it works with claude-3-opus and gemini-1.5.

Notes

  • The existing prompt is useful in identifying the shortcomings of these LLMs, so it may be useful to keep around in some capacity.
  • claude-3-opus is interesting because it, along with gpt-4-turbo and gpt-4o, are capable of inferring the necessary sequence of chained tool calls and come to the correct result with a prompt as basic as Get the sentiments of the tweet at ${url}.. For that same basic prompt, gemini-1.5 fails to chain functions at all and just immediately calls sentiments with hallucinated text.

Re-engineer the `sentiments.gpt` example tool body prompt wording so that it works
with `claude-3-opus` and `gemini-1.5`.

Signed-off-by: Nick Hale <[email protected]>
@njhale njhale merged commit 9e7a3ff into gptscript-ai:main May 23, 2024
1 check 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.

3 participants