-
Notifications
You must be signed in to change notification settings - Fork 20
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
29 setup openai client #34
Merged
Merged
Changes from 49 commits
Commits
Show all changes
64 commits
Select commit
Hold shift + click to select a range
d5e90be
#29: openai client
mkrueger12 4282f55
#29: add sample
mkrueger12 33c8930
#29: Refactor OpenAI provider configuration
mkrueger12 fbbeb7e
#29: Refactor OpenAiClient struct and methods
mkrueger12 62cd933
#29: Refactor OpenAiClient struct and methods
mkrueger12 da76319
#29: refactor
mkrueger12 e3266ac
29: chat converted to Hertz
mkrueger12 f34604b
#29: Update OpenAI provider configuration and chat request validation
mkrueger12 1311228
#29: clean up
mkrueger12 08036df
#29: Remove unused code and refactor parseStreamingChatResponse function
mkrueger12 c91a81d
#29: Update dependencies in go.mod and go.sum files
mkrueger12 dd4985e
#29: build client init
mkrueger12 6128423
#29: CreatChatRequest
mkrueger12 f791d7a
#29: Fix import and log package names
mkrueger12 a5caa77
#29: add run method
mkrueger12 db38f44
#29: tests passing
mkrueger12 463401b
#29: tests passing
mkrueger12 e16c13c
#29: add todo
mkrueger12 71f5da8
#29: Merge branch 'develop' of https://github.com/modelgateway/Glide …
mkrueger12 c9d9402
#29: go mod tody
mkrueger12 2f3695a
#29: gofmt
mkrueger12 519128e
#29: gofumpt
mkrueger12 1d48263
#29: lint
mkrueger12 f54f300
#29: lint
mkrueger12 843997d
#29: lint
mkrueger12 4f9eda0
#29: fix Implicit memory aliasing
mkrueger12 388f01c
#29: lint
mkrueger12 f38473e
#29: update request from defaultParams
mkrueger12 cc13f38
#29: lint
mkrueger12 a9a9f0b
#29: lint
mkrueger12 fe9ad4f
#29: emove unused variable in OpenAiClient constructor
mkrueger12 bb85259
#29: Update client
mkrueger12 ae94197
#29: Refactor OpenAI chat functionality
mkrueger12 45d1959
#29: Fix OpenAI client error handling and validation
mkrueger12 93c3419
#29: Fix OpenAI client error handling and validation
mkrueger12 0edd274
#29: Set the appropriate base URL in OpenAiClient constructor
mkrueger12 fd9e21a
#29: Refactor OpenAI provider configuration
mkrueger12 c7d341c
#29: comments
mkrueger12 d922ee9
#29: Refactor OpenAI client and related functions
mkrueger12 236a319
#29: chores
mkrueger12 def24a0
#29: chores
mkrueger12 2e3a97e
#29: comment
mkrueger12 398829b
#29: create a yaml for provider global configs
mkrueger12 cda3fc9
#29: comments
mkrueger12 acac5bd
#29: comments
mkrueger12 3f8bf68
#29: update http client
mkrueger12 0065cde
#29: Add file path validation and error handling in openaiclient.go
mkrueger12 f5a8ecd
#29: move common helpers to types.go
mkrueger12 e8fef9f
#29: chores
mkrueger12 cbcfaf3
#29: Refactor OpenAI client and chat request creation
mkrueger12 9a14b71
#29: Remove unused dependencies and update dependencies
mkrueger12 906df8d
#29: Update Unified Data structure
mkrueger12 19e8f46
#29: remove provider
mkrueger12 597381c
#29: clean up
mkrueger12 6023254
#29: clean up
mkrueger12 1d369a3
#29: lint
mkrueger12 a9598e9
#29: remove hertz comment
mkrueger12 5a858a6
#29: Merge remote-tracking branch 'origin/develop' into 29-setup-open…
mkrueger12 98c029d
#29: pass unified data to chat method
mkrueger12 a4b41f0
#29: init logging
mkrueger12 80a28c9
#29: init logging
mkrueger12 8cbe50e
#29: init logging
mkrueger12 c0b6989
#29: lint
mkrueger12 5ee8f4a
Merge branch 'develop' into 29-setup-openai-client
mkrueger12 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -1,7 +1,10 @@ | ||
.idea | ||
dist | ||
.env | ||
config.yaml | ||
bin | ||
glide | ||
tmp | ||
coverage.txt | ||
precommit.txt | ||
openai_test.go | ||
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we ignore that test file? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah... I was trying too but got lazy haha