[go: nahoru, domu]

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

feat: vertexai support proxy url(example: cloudflare ai gateway) and fix some vertexai bug #1642

Merged
merged 4 commits into from
Jul 15, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: missing system
  • Loading branch information
zijiren233 committed Jul 13, 2024
commit 005fa5fc4ae7f68b11706bf923847968b6cae585
15 changes: 8 additions & 7 deletions relay/adaptor/vertexai/claude/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,14 @@
req := Request{
AnthropicVersion: anthropicVersion,
// Model: claudeReq.Model,
Messages: claudeReq.Messages,
MaxTokens: claudeReq.MaxTokens,
Temperature: claudeReq.Temperature,
TopP: claudeReq.TopP,
TopK: claudeReq.TopK,
Stream: claudeReq.Stream,
Tools: claudeReq.Tools,
Messages: claudeReq.Messages,
System: claudeReq.System,
MaxTokens: claudeReq.MaxTokens,
Temperature: claudeReq.Temperature,
TopP: claudeReq.TopP,
TopK: claudeReq.TopK,
Stream: claudeReq.Stream,
Tools: claudeReq.Tools,

Check warning on line 40 in relay/adaptor/vertexai/claude/adapter.go

View check run for this annotation

Codecov / codecov/patch

relay/adaptor/vertexai/claude/adapter.go#L33-L40

Added lines #L33 - L40 were not covered by tests
}

c.Set(ctxkey.RequestModel, request.Model)
Expand Down
Loading