Skip to content

Commit

Permalink
Merge pull request #10 from RelevanceAI/release/0.1.2
Browse files Browse the repository at this point in the history
Release 0.1.2
  • Loading branch information
danieljpalmer committed Jun 2, 2023
2 parents 6f74bfe + e83b2ac commit 4f70879
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 48 deletions.
1 change: 1 addition & 0 deletions chains/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.relevance
106 changes: 69 additions & 37 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 13 additions & 11 deletions src/generated/transformation-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ export interface PromptCompletionInput {
| "palm-chat-bison"
| "palm-text-bison"
| "anthropic-claude-instant-v1"
| "anthropic-claude-v1";
| "anthropic-claude-v1"
| "anthropic-claude-instant-v1-100k"
| "anthropic-claude-v1-100k"
| "cohere-command"
| "cohere-command-light";
history?: {
role: "user" | "ai";
message: string;
Expand All @@ -24,25 +28,21 @@ export interface PromptCompletionInput {
temperature?: number;
validators?: (
| {
type?: "regex";
value?: {
pattern: string;
flags?: string;
[k: string]: any | undefined;
};
_oneof_type_?: "regex";
pattern: string;
flags?: string;
[k: string]: any | undefined;
}
| {
type?: "is_json";
value?: any;
_oneof_type_?: "is_json";
[k: string]: any | undefined;
}
| {
type?: "jsonschema";
_oneof_type_?: "jsonschema";
/**
* A JSONSchema object. For example: {"type": "object", "properties": {"name": {"type": "string"}}}
*/
value?: {
schema?: {
[k: string]: any | undefined;
};
[k: string]: any | undefined;
Expand Down Expand Up @@ -135,6 +135,7 @@ export interface SearchArrayInput {
array: any[];
query: string;
page_size?: number;
field?: string;
}

export interface SearchArrayOutput {
Expand Down Expand Up @@ -380,6 +381,7 @@ export interface SplitTextInput {
text: string;
method: "tokens" | "separator";
num_tokens?: number;
num_tokens_to_slide_window?: number;
sep?: string;
}

Expand Down

0 comments on commit 4f70879

Please sign in to comment.