Skip to content
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

Use gpt4-o-mini by default and filter out </output> tags #266

Merged
merged 1 commit into from
Sep 30, 2024

Conversation

jlewi
Copy link
Owner

@jlewi jlewi commented Sep 30, 2024

  • Use gpt4-o-mini by default to lower costs.

  • gpt4-o-mini is more than an order of magnitude cheaper than gpt4-o

    • .15 / million input tokens vs $5 / million input tokens
    • .6 / million output tokens vs $15 / million output tokens
  • In the case where OAI can't determine an apporpriate command it often just outputs the output tag . This is sometimes included in a code block so our postprocessing doesn't remove it and turn it into an empty response

  • Fix the post-processing to remove this.

Fix #264

* Use gpt4-o-mini by default to lower costs.
* gpt4-o-mini is more than an order of magnitude cheaper than gpt4-o

  * .15 / million input tokens vs $5 / million input tokens
  * .6 / million output tokens vs $15 / million output tokens

* In the case where OAI can't determine an apporpriate command it often just outputs
  the output tag </output>. This is sometimes included in a code block so
  our postprocessing doesn't remove it and turn it into an empty response

* Fix the post-processing to remove this.
@jlewi jlewi enabled auto-merge (squash) September 30, 2024 18:14
Copy link

netlify bot commented Sep 30, 2024

Deploy Preview for foyle canceled.

Name Link
🔨 Latest commit 29bc5e1
🔍 Latest deploy log https://app.netlify.com/sites/foyle/deploys/66faea8251be330008d2e8e4

@jlewi jlewi merged commit 238e04f into main Sep 30, 2024
5 checks passed
@jlewi jlewi deleted the jlewi/outputtag branch September 30, 2024 18:16
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.

</output> Appears in OpenAI responses
1 participant