-
Notifications
You must be signed in to change notification settings - Fork 3
Separate audio client functions #100
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
Open
ngoiyaeric
wants to merge
8
commits into
conneroisu:main
Choose a base branch
from
ngoiyaeric:separate-audio-client-functions
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Separate audio client functions #100
ngoiyaeric
wants to merge
8
commits into
conneroisu:main
from
ngoiyaeric:separate-audio-client-functions
Conversation
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
Convert tool calls to asynchronous execution using goroutines and unbuffered channels. * **`examples/composio-github-star/main.go`** - Add unbuffered channels for `comp.Run` tool call. - Execute `comp.Run` tool call in a goroutine. - Receive the result from the unbuffered channel. * **`examples/e2b-go-project/main.go`** - Add unbuffered channels for `sb.RunTooling` tool call. - Execute `sb.RunTooling` tool call in a goroutine. - Receive the result from the unbuffered channel. * **`examples/toolhouse-python-code-interpreter/main.go`** - Add unbuffered channels for `ext.Run` tool call. - Execute `ext.Run` tool call in a goroutine. - Receive the result from the unbuffered channel. * **`extensions/composio/run.go`** - Add unbuffered channels for `comp.Run` tool call. - Execute `comp.Run` tool call in a goroutine. - Receive the result from the unbuffered channel.
Turn all tool calls into go routine on unbuffured channels
Add a method to signify task completion by an LLM. * **groq.go** - Add `TaskCompletionEndpoint` field to `Client` struct. - Initialize `TaskCompletionEndpoint` in `NewClient` function. - Implement `SignifyTaskCompletion` method in `Client` struct. * **README.md** - Add documentation for `SignifyTaskCompletion` method. - Include an example usage of `SignifyTaskCompletion` method. * **unit_test.go** - Add `TestSignifyTaskCompletion` to test successful task completion. - Add `handleSignifyTaskCompletionEndpoint` to handle the signify task completion endpoint. - Add `TestSignifyTaskCompletionError` to test task completion with an error response. - Add `handleSignifyTaskCompletionErrorEndpoint` to handle the signify task completion endpoint with an error response.
Add method to signify task completion by LLM
Revert "Turn all tool calls into go routine on unbuffured channels"
Add separate request structs for transcription and translation functions. * Add `TranscriptionRequest` struct to handle transcription-specific parameters in `groq.go`. * Add `TranslationRequest` struct to handle translation-specific parameters in `groq.go`. * Update `Transcribe` function to use `TranscriptionRequest` in `groq.go`. * Update `Translate` function to use `TranslationRequest` in `groq.go`. * Modify `callAudioAPI` function to handle both `TranscriptionRequest` and `TranslationRequest` in `groq.go`. * Add unit tests for `TranscriptionRequest` and `TranslationRequest` in `inference_test.go`. * Add `TranscriptionRequest` and `TranslationRequest` struct definitions in `types.go`.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add separate request structs for transcription and translation functions.
Add TranscriptionRequest struct to handle transcription-specific parameters in groq.go.
Add TranslationRequest struct to handle translation-specific parameters in groq.go.
Update Transcribe function to use TranscriptionRequest in groq.go.
Update Translate function to use TranslationRequest in groq.go.
Modify callAudioAPI function to handle both TranscriptionRequest and TranslationRequest in groq.go.
Add unit tests for TranscriptionRequest and TranslationRequest in inference_test.go.
Add TranscriptionRequest and TranslationRequest struct definitions in types.go.