-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add handling of invalid JSON in tool call argument
OpenAI will occasionally respond with a tool call that contains invalid JSON. Rather than trying to figure out how to fix their bad JSON, we now just bypass adding it to the outstanding tool calls and instead respond directly to the LLM with an error message indicating that the tool call arguments were invalid JSON.
- Loading branch information
Showing
4 changed files
with
177 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# /home/jwilger/.config/tmuxinator/apex.yml | ||
|
||
name: gpt_agent | ||
root: ~/projects/gpt_agent | ||
|
||
# Optional tmux socket | ||
# socket_name: foo | ||
|
||
# Note that the pre and post options have been deprecated and will be replaced by | ||
# project hooks. | ||
|
||
# Project hooks | ||
|
||
# Runs on project start, always | ||
# on_project_start: mix deps.get | ||
|
||
# Run on project start, the first time | ||
# on_project_first_start: mix setup | ||
|
||
# Run on project start, after the first time | ||
# on_project_restart: command | ||
|
||
# Run on project exit ( detaching from tmux session ) | ||
# on_project_exit: command | ||
|
||
# Run on project stop | ||
# on_project_stop: command | ||
|
||
# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions. | ||
# pre_window: rbenv shell 2.0.0-p247 | ||
|
||
# Pass command line options to tmux. Useful for specifying a different tmux.conf. | ||
# tmux_options: -f ~/.tmux.mac.conf | ||
|
||
# Change the command to call tmux. This can be used by derivatives/wrappers like byobu. | ||
# tmux_command: byobu | ||
|
||
# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used. | ||
# startup_window: editor | ||
|
||
# Specifies (by index) which pane of the specified window will be selected on project startup. If not set, the first pane is used. | ||
# startup_pane: 1 | ||
|
||
# Controls whether the tmux session should be attached to automatically. Defaults to true. | ||
# attach: false | ||
|
||
windows: | ||
- editor: | ||
layout: 49d3,364x88,0,0{280x88,0,0,20,83x88,281,0,22} | ||
# Synchronize all panes of this window, can be enabled before or after the pane commands run. | ||
# 'before' represents legacy functionality and will be deprecated in a future release, in favour of 'after' | ||
# synchronize: after | ||
panes: | ||
- vim | ||
- mix test.interactive --stale |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters