-
Notifications
You must be signed in to change notification settings - Fork 4
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
6-track-requests-from-js-library #8
6-track-requests-from-js-library #8
Conversation
src/types/track-request.ts
Outdated
@@ -0,0 +1,40 @@ | |||
export type ApiKey = string; | |||
export type ProviderType = "openai" | "anthropic" | "langchain"; |
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.
Why don't we just make this a string?
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.
@jzone3 the types in this file are coming straight from the pydantic models on backend. If we want to change something, we should do it on backend.
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.
That's not true. You can track requests with cohere for example today.
This is also a library, not the backend. There's a difference
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.
Got it @jzone3 will update it.
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.
LGTM
tags?: string[]; | ||
request_response?: Record<string, unknown>; | ||
prompt_input_variables?: Record<string, string> | string[]; | ||
[k: string]: unknown; |
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.
Is this on purpose?
e4160f9
into
4-proxy-openai-requests-from-js-library
fix: #6