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

6-track-requests-from-js-library #8

Conversation

abubakarsohail
Copy link
Collaborator

fix: #6

@abubakarsohail abubakarsohail linked an issue Oct 3, 2023 that may be closed by this pull request
@@ -0,0 +1,40 @@
export type ApiKey = string;
export type ProviderType = "openai" | "anthropic" | "langchain";
Copy link

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?

Copy link
Collaborator Author

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.

Copy link

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

Copy link
Collaborator Author

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.

src/types/track-request.ts Outdated Show resolved Hide resolved
src/types/track-request.ts Outdated Show resolved Hide resolved
src/utils/index.ts Outdated Show resolved Hide resolved
src/utils/index.ts Outdated Show resolved Hide resolved
src/utils/index.ts Outdated Show resolved Hide resolved
Copy link

@jzone3 jzone3 left a 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;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this on purpose?

@abubakarsohail abubakarsohail merged commit e4160f9 into 4-proxy-openai-requests-from-js-library Oct 5, 2023
1 check passed
@abubakarsohail abubakarsohail deleted the 6-track-requests-from-js-library branch October 5, 2023 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

track requests from js library
2 participants