SYMBOL INDEX (223 symbols across 33 files) FILE: app/src/app.tsx constant DEFAULT_PARAMETERS_STATE (line 16) | const DEFAULT_PARAMETERS_STATE = { constant DEFAULT_EDITOR_STATE (line 29) | const DEFAULT_EDITOR_STATE = { constant DEFAULT_HISTORY_STATE (line 35) | const DEFAULT_HISTORY_STATE = { constant DEFAULT_CONTEXTS (line 41) | const DEFAULT_CONTEXTS = { constant SETTINGS (line 63) | let SETTINGS = null; function useDebounce (line 130) | function useDebounce(func, delay) { function createTextCompletionRequest (line 216) | function createTextCompletionRequest({prompt, models}) { function createChatCompletionRequest (line 225) | function createChatCompletionRequest(prompt, model) { function createCompletionRequest (line 231) | function createCompletionRequest(url, payload, subscribers) { function createCompletionsBuffer (line 253) | function createCompletionsBuffer(models) { function bindSSEEvents (line 261) | function bindSSEEvents(sse_request, completionsBuffer, requestState, bef... function close_sse (line 309) | function close_sse(sse_request, requestState, beforeUnloadHandler, subsc... function bulkWrite (line 318) | function bulkWrite(completionsBuffer, requestState, subscribers) { function ProviderWithRoutes (line 602) | function ProviderWithRoutes() { function App (line 642) | function App() { FILE: app/src/components/inputarea.tsx function InputArea (line 4) | function InputArea() { FILE: app/src/components/multi-select.tsx type MultiSelectProps (line 7) | interface MultiSelectProps { FILE: app/src/components/navbar.tsx function NavBar (line 4) | function NavBar({ tab, children }: any) { FILE: app/src/components/parameter-slider.tsx type ParameterSliderProps (line 14) | interface ParameterSliderProps { FILE: app/src/components/ui/button.tsx type ButtonProps (line 36) | interface ButtonProps FILE: app/src/components/ui/input.tsx type InputProps (line 5) | interface InputProps FILE: app/src/components/ui/sheet.tsx type DialogPortalProps (line 41) | interface DialogPortalProps type DialogContentProps (line 76) | interface DialogContentProps FILE: app/src/components/ui/textarea.tsx type TextareaProps (line 5) | interface TextareaProps FILE: app/src/components/ui/toast.tsx type ToastProps (line 114) | type ToastProps = React.ComponentPropsWithoutRef type ToastActionElement (line 116) | type ToastActionElement = React.ReactElement FILE: app/src/components/ui/toaster.tsx function Toaster (line 14) | function Toaster() { FILE: app/src/error-page.tsx function ErrorPage (line 3) | function ErrorPage() { FILE: app/src/hooks/ui/use-toast.tsx constant TOAST_LIMIT (line 6) | const TOAST_LIMIT = 1 constant TOAST_REMOVE_DELAY (line 7) | const TOAST_REMOVE_DELAY = 1000 type ToasterToast (line 9) | type ToasterToast = ToastProps & { function genId (line 25) | function genId() { type ActionType (line 30) | type ActionType = typeof actionTypes type Action (line 32) | type Action = type State (line 50) | interface State { function dispatch (line 127) | function dispatch(action: Action) { type Toast (line 134) | interface Toast extends Omit {} function toast (line 136) | function toast({ ...props }: Toast) { function useToast (line 165) | function useToast() { FILE: app/src/hooks/use-breakpoint.ts type BreakpointKey (line 10) | type BreakpointKey = keyof typeof breakpoints function useBreakpoint (line 12) | function useBreakpoint(breakpointKey: any) { FILE: app/src/lib/editor-styles.tsx function getDecoratedStyle (line 53) | function getDecoratedStyle(provider: string, showHighlights: boolean) { FILE: app/src/lib/utils.ts function cn (line 4) | function cn(...inputs: ClassValue[]) { function handleSelectModel (line 8) | function handleSelectModel(modelState, modelsStateContext, setModelsStat... FILE: app/src/pages/compare.tsx function insertLineBreaks (line 89) | function insertLineBreaks(str) { function findEntityRangesByType (line 275) | function findEntityRangesByType(entityType: any) { function PromptEditor (line 436) | function PromptEditor({editorState, setEditorState, ...props}: any) { function PromptArea (line 512) | function PromptArea({showDialog}) { function Compare (line 968) | function Compare() { FILE: app/src/pages/playground.tsx class EditorWrapper (line 246) | class EditorWrapper extends React.Component { method componentDidCatch (line 247) | componentDidCatch() { method keyBindingFn (line 252) | keyBindingFn(event: any) { method handleKeyCommand (line 265) | handleKeyCommand(command: any, editorState: any) { method render (line 278) | render() { function findEntityRangesByType (line 552) | function findEntityRangesByType(entityType: any) { function Playground (line 926) | function Playground() { FILE: app/src/pages/settings.tsx type Provider (line 12) | interface Provider { type Model (line 21) | interface Model { type ProviderProps (line 27) | interface ProviderProps { type AllSelectedModelsProps (line 250) | interface AllSelectedModelsProps { function Settings (line 303) | function Settings() { FILE: server/app.py function warning_on_one_line (line 30) | def warning_on_one_line(message, category, filename, lineno, file=None, ... function serve (line 42) | def serve(path): function page_not_found (line 49) | def page_not_found(i): function before_request (line 54) | def before_request(): class RedirectStderr (line 62) | class RedirectStderr: method __init__ (line 63) | def __init__(self, new_stderr): method __enter__ (line 67) | def __enter__(self): method __exit__ (line 71) | def __exit__(self, exc_type, exc_val, exc_tb): function redirect_stderr (line 75) | def redirect_stderr(new_stderr): class MonitorThread (line 79) | class MonitorThread(threading.Thread): method __init__ (line 80) | def __init__(self, model, output_buffer): method run (line 87) | def run(self): method stop (line 134) | def stop(self): class NotificationManager (line 137) | class NotificationManager: method __init__ (line 138) | def __init__(self, sse_queue: SSEQueueWithTopic): method __model_added_callback__ (line 146) | def __model_added_callback__(self, model_name, model): method __model_updated_callback__ (line 161) | def __model_updated_callback__(self, model_name, model): method __model_download_update_callback__ (line 176) | def __model_download_update_callback__(self, _, model, progress): class DownloadManager (line 193) | class DownloadManager: method __init__ (line 194) | def __init__(self, storage: Storage): method __initialization_check__ (line 203) | def __initialization_check__(self): method __model_added_callback__ (line 236) | def __model_added_callback__(self, model_name, model): method __download_loop__ (line 240) | def __download_loop__(self): class GlobalStateManager (line 271) | class GlobalStateManager: method __init__ (line 272) | def __init__(self, storage): method get_storage (line 285) | def get_storage(self): method get_sse_manager (line 288) | def get_sse_manager(self): method text_generation (line 291) | def text_generation(self, inference_request: InferenceRequest): method get_announcer (line 319) | def get_announcer(self): function cli (line 323) | def cli(): function run (line 334) | def run(host, port, debug, env, models, log_level): function import_config (line 361) | def import_config(input): function export_config (line 380) | def export_config(ctx, output): FILE: server/lib/api/__init__.py function add_cors_header (line 18) | def add_cors_header(response): function set_app_context (line 23) | def set_app_context(): function all_models (line 27) | def all_models(): function enabled_models_names (line 42) | def enabled_models_names(): function enabled_models (line 55) | def enabled_models(): function providers (line 71) | def providers(): function providers_with_models (line 85) | def providers_with_models(): function providers_check_api_keys (line 104) | def providers_check_api_keys(): function notifications (line 120) | def notifications(): FILE: server/lib/api/inference.py function set_app_context (line 20) | def set_app_context(): function stream_inference (line 24) | def stream_inference(): function is_valid_request_data (line 48) | def is_valid_request_data(data): function create_inference_request (line 51) | def create_inference_request(model, storage, prompt, request_uuid): function extract_model_data (line 65) | def extract_model_data(model): function validate_parameters (line 68) | def validate_parameters(model, parameters): function stream_response (line 82) | def stream_response(global_state, uuid): function bulk_completions (line 101) | def bulk_completions(global_state, tasks: List[InferenceRequest]): function split_tasks_by_provider (line 123) | def split_tasks_by_provider(tasks: List[InferenceRequest]) -> Tuple[List... FILE: server/lib/api/provider.py function set_app_context (line 16) | def set_app_context(): function verify_provider (line 20) | def verify_provider(): function provider_models (line 36) | def provider_models(provider_name): function provider_model (line 50) | def provider_model(provider_name, model_name): function provider_toggle_model (line 64) | def provider_toggle_model(provider_name, model_name): function provider_models_search (line 95) | def provider_models_search(provider_name): function provider_update_api_key (line 123) | def provider_update_api_key(provider_name): FILE: server/lib/api/response_utils.py function create_response_message (line 3) | def create_response_message(message: str, status_code: int) -> Response: FILE: server/lib/entities.py class Model (line 5) | class Model: method __init__ (line 6) | def __init__( method copy (line 16) | def copy(self): method __repr__ (line 26) | def __repr__(self): class ModelEncoder (line 29) | class ModelEncoder(json.JSONEncoder): method __init__ (line 30) | def __init__(self, *args, serialize_as_list=True, **kwargs): method default (line 34) | def default(self, obj): class Provider (line 46) | class Provider: method __init__ (line 47) | def __init__( method has_model (line 63) | def has_model(self, model_name: str) -> bool: method get_model (line 66) | def get_model(self, model_name: str) -> Model: method update_model (line 71) | def update_model(self, model_name: str, model: Model) -> None: method add_model (line 78) | def add_model(self, model: Model) -> None: method remove_model (line 83) | def remove_model(self, model_name: str) -> None: method copy (line 90) | def copy(self): method __repr__ (line 102) | def __repr__(self): class ProviderEncoder (line 105) | class ProviderEncoder(json.JSONEncoder): method __init__ (line 106) | def __init__(self, *args, serialize_models_as_list=True, **kwargs): method default (line 110) | def default(self, obj): method to_camel_case (line 125) | def to_camel_case(snake_str): FILE: server/lib/event_emitter.py class EVENTS (line 4) | class EVENTS(Enum): class Singleton (line 13) | class Singleton(type): method __call__ (line 17) | def __call__(cls, *args, **kwargs): class EventEmitter (line 23) | class EventEmitter(metaclass=Singleton): method __init__ (line 24) | def __init__(self): method on (line 28) | def on(self, event: EVENTS, listener): method off (line 35) | def off(self, event, listener): method emit (line 40) | def emit(self, event: EVENTS, *args, **kwargs): FILE: server/lib/inference/__init__.py class ProviderDetails (line 23) | class ProviderDetails: class InferenceRequest (line 33) | class InferenceRequest: class ProablityDistribution (line 51) | class ProablityDistribution: class InferenceResult (line 63) | class InferenceResult: class InferenceAnnouncer (line 84) | class InferenceAnnouncer: method __init__ (line 85) | def __init__(self, sse_topic): method __format_message__ (line 89) | def __format_message__(self, event: str, infer_result: InferenceResult... method announce (line 110) | def announce(self, infer_result: InferenceResult, event: str): method cancel_callback (line 125) | def cancel_callback(self, message): class InferenceManager (line 132) | class InferenceManager: method __init__ (line 133) | def __init__(self, sse_topic): method __error_handler__ (line 136) | def __error_handler__(self, inference_fn: InferenceFunction, provider_... method __openai_chat_generation__ (line 201) | def __openai_chat_generation__(self, provider_details: ProviderDetails... method __openai_text_generation__ (line 258) | def __openai_text_generation__(self, provider_details: ProviderDetails... method openai_text_generation (line 327) | def openai_text_generation(self, provider_details: ProviderDetails, in... method __cohere_text_generation__ (line 334) | def __cohere_text_generation__(self, provider_details: ProviderDetails... method cohere_text_generation (line 378) | def cohere_text_generation(self, provider_details: ProviderDetails, in... method __huggingface_text_generation__ (line 381) | def __huggingface_text_generation__(self, provider_details: ProviderDe... method huggingface_text_generation (line 460) | def huggingface_text_generation(self, provider_details: ProviderDetail... method __forefront_text_generation__ (line 463) | def __forefront_text_generation__(self, provider_details: ProviderDeta... method forefront_text_generation (line 566) | def forefront_text_generation(self, provider_details: ProviderDetails,... method __local_text_generation__ (line 569) | def __local_text_generation__(self, provider_details: ProviderDetails,... method local_text_generation (line 601) | def local_text_generation(self, provider_details: ProviderDetails, inf... method __anthropic_text_generation__ (line 604) | def __anthropic_text_generation__(self, provider_details: ProviderDeta... method anthropic_text_generation (line 639) | def anthropic_text_generation(self, provider_details: ProviderDetails,... method __aleph_alpha_text_generation__ (line 642) | def __aleph_alpha_text_generation__(self, provider_details: ProviderDe... method aleph_alpha_text_generation (line 667) | def aleph_alpha_text_generation(self, provider_details: ProviderDetail... method get_announcer (line 670) | def get_announcer(self): FILE: server/lib/inference/huggingface/generator.py function greedy_search_generator (line 15) | def greedy_search_generator( FILE: server/lib/inference/huggingface/helpers.py class StoppingCriteriaSub (line 4) | class StoppingCriteriaSub(StoppingCriteria): method __init__ (line 5) | def __init__(self, stops = []): method __call__ (line 8) | def __call__(self, input_ids: torch.LongTensor, scores: torch.FloatTen... FILE: server/lib/inference/huggingface/hf.py class HFInference (line 23) | class HFInference: method __init__ (line 27) | def __init__(self, model_name: str): method load_model (line 32) | def load_model(self, model_name: str) -> (PreTrainedModel, PreTrainedT... method generate (line 68) | def generate(self, FILE: server/lib/sse.py class Message (line 16) | class Message(object): method __init__ (line 20) | def __init__(self, data, type=None, id=None, retry=None): method to_dict (line 37) | def to_dict(self): method __str__ (line 51) | def __str__(self): method __repr__ (line 69) | def __repr__(self): method __eq__ (line 87) | def __eq__(self, other): class ServerSentEventsBlueprint (line 97) | class ServerSentEventsBlueprint(Blueprint): method sse_server (line 103) | def sse_server(self): method publish (line 112) | def publish(self, data, type=None, id=None, retry=None, channel='sse'): method messages (line 133) | def messages(self, channel='sse'): method stream (line 158) | def stream(self): FILE: server/lib/sseserver.py class SSEQueue (line 6) | class SSEQueue: method __init__ (line 7) | def __init__(self): method listen (line 10) | def listen(self): method publish (line 16) | def publish(self, message: str): class SSEQueueWithTopic (line 24) | class SSEQueueWithTopic: method __init__ (line 25) | def __init__(self): method listen (line 28) | def listen(self, topic: str): method publish (line 34) | def publish(self, topic: str, message: str): method add_topic (line 40) | def add_topic(self, topic: str): method get_topic (line 46) | def get_topic(self, topic: str): method remove_topic (line 52) | def remove_topic(self, topic: str): FILE: server/lib/storage.py class Storage (line 24) | class Storage: method __init__ (line 25) | def __init__(self, models_json_path: str = None, env_file_path: str = ... method __initialize_config__ (line 73) | def __initialize_config__(self, models_json_path: str = None): method get_models (line 134) | def get_models(self) -> List[Model]: method get_enabled_models (line 137) | def get_enabled_models(self) -> List[Model]: method get_enabled_models_names (line 140) | def get_enabled_models_names(self) -> List[str]: method get_enabled_models_by_provider (line 143) | def get_enabled_models_by_provider(self) -> Dict[str, List[Model]]: method get_model (line 152) | def get_model(self, model_name: str) -> Model: method get_providers (line 155) | def get_providers(self) -> List[Provider]: method get_provider_names (line 158) | def get_provider_names(self) -> List[str]: method get_provider (line 161) | def get_provider(self, provider_name: str) -> Provider: method update_provider_api_key (line 171) | def update_provider_api_key(self, provider_name: str, api_key: str): method __update___ (line 185) | def __update___(self, event: str, *args, **kwargs): method update_model (line 195) | def update_model(self, model_name: str, model: Model): method __save__ (line 210) | def __save__(self): method import_config (line 238) | def import_config(config_path: str): method export_config (line 249) | def export_config(output_path: str):