You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the feature or problem you’d like to solve
The get_file_contents tool currently returns file contents in base64. This matches the backing API, but it'd be nice to have a non-base64 option for this. The corresponding create_or_update_file tool accept plaintext, even though the backing API only allows base64.
Proposed solution
This would create interface consistency and probably lead to better model performance with the tool.
Additional context
I'm happy to send a PR for this if there's a recommended approach I should take!
The text was updated successfully, but these errors were encountered:
I seriously thought I was going crazy when gpt-4o-mini was making up example code after knowingly reading the file contents and I explicitly instructed it to reference code from the repo. Turns out this was the problem. Made a fix locally and it works as expected now.
var result interface{}
if fileContent != nil {
result, err = fileContent.GetContent()
if err != nil {
return nil, fmt.Errorf("failed to get file content: %w", err)
}
} else {
result = dirContent
}
Describe the feature or problem you’d like to solve
The
get_file_contents
tool currently returns file contents in base64. This matches the backing API, but it'd be nice to have a non-base64 option for this. The correspondingcreate_or_update_file
tool accept plaintext, even though the backing API only allows base64.Proposed solution
This would create interface consistency and probably lead to better model performance with the tool.
Additional context
I'm happy to send a PR for this if there's a recommended approach I should take!
The text was updated successfully, but these errors were encountered: