Skip to content

Commit

Permalink
coral-web: fix citations for python interpreter (cohere-ai#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
wujessica authored May 23, 2024
1 parent 1918a1e commit 658332d
Show file tree
Hide file tree
Showing 20 changed files with 697 additions and 384 deletions.
2 changes: 1 addition & 1 deletion src/interfaces/coral_web/.env.development
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Client
NEXT_PUBLIC_API_HOSTNAME=http://backend:8000
NEXT_PUBLIC_API_HOSTNAME=http://localhost:8000
NEXT_PUBLIC_HAS_CUSTOM_LOGO=false
5 changes: 2 additions & 3 deletions src/interfaces/coral_web/src/cohere-client/generated/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ export { CancelablePromise, CancelError } from './core/CancelablePromise';
export { OpenAPI } from './core/OpenAPI';
export type { OpenAPIConfig } from './core/OpenAPI';

export type { Body_upload_file_conversations_upload_file_post } from './models/Body_upload_file_conversations_upload_file_post';
export type { Body_upload_file_with_conversation_conversations__conversation_id__upload_file_post } from './models/Body_upload_file_with_conversation_conversations__conversation_id__upload_file_post';
export type { Body_upload_file_v1_conversations_upload_file_post } from './models/Body_upload_file_v1_conversations_upload_file_post';
export { Category } from './models/Category';
export type { ChatMessage } from './models/ChatMessage';
export type { ChatResponseEvent } from './models/ChatResponseEvent';
Expand All @@ -28,10 +27,10 @@ export type { File } from './models/File';
export type { HTTPValidationError } from './models/HTTPValidationError';
export type { LangchainChatRequest } from './models/LangchainChatRequest';
export type { ListFile } from './models/ListFile';
export type { Login } from './models/Login';
export type { ManagedTool } from './models/ManagedTool';
export type { Message } from './models/Message';
export { MessageAgent } from './models/MessageAgent';
export { MessageType } from './models/MessageType';
export type { NonStreamedChatResponse } from './models/NonStreamedChatResponse';
export type { SearchQuery } from './models/SearchQuery';
export type { StreamCitationGeneration } from './models/StreamCitationGeneration';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type Body_upload_file_conversations_upload_file_post = {
export type Body_upload_file_v1_conversations_upload_file_post = {
conversation_id?: string;
file: Blob;
};

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
/* tslint:disable */
/* eslint-disable */
export type CreateUser = {
password?: string | null;
hashed_password?: Blob | null;
fullname: string;
email?: string | null;
};
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ export type Document = {
document_id: string;
title: string | null;
url: string | null;
fields: Record<string, any> | null;
tool_name: string | null;
};
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export enum MessageType {
TEXT = 'TEXT',
}
export type Login = {
strategy: string;
payload: Record<string, string>;
};
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ import type { Citation } from './Citation';
import type { Document } from './Document';
import type { File } from './File';
import type { MessageAgent } from './MessageAgent';
import type { MessageType } from './MessageType';

export type Message = {
type?: MessageType;
text: string;
id: string;
created_at: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
/* tslint:disable */
/* eslint-disable */
export type UpdateUser = {
fullname: string;
password?: string | null;
hashed_password?: Blob | null;
fullname?: string | null;
email?: string | null;
};
Loading

0 comments on commit 658332d

Please sign in to comment.