mirror of
https://github.com/ianarawjo/ChainForge.git
synced 2025-03-14 08:16:37 +00:00
Merge PRs adding two new default HF models and Zoom add node fix (#148)
* Add more recent hf models (#147) * support zoom (#146) * Update package version and rebuild react --------- Co-authored-by: Victor Muštar <victor.mustar@gmail.com> Co-authored-by: zhaoolee <zhaoolee@gmail.com>
This commit is contained in:
parent
2be5a0a5e5
commit
136fe70458
@ -1,15 +1,15 @@
|
||||
{
|
||||
"files": {
|
||||
"main.css": "/static/css/main.60127273.css",
|
||||
"main.js": "/static/js/main.56cc0d38.js",
|
||||
"main.js": "/static/js/main.ee990fc8.js",
|
||||
"static/js/787.4c72bb55.chunk.js": "/static/js/787.4c72bb55.chunk.js",
|
||||
"index.html": "/index.html",
|
||||
"main.60127273.css.map": "/static/css/main.60127273.css.map",
|
||||
"main.56cc0d38.js.map": "/static/js/main.56cc0d38.js.map",
|
||||
"main.ee990fc8.js.map": "/static/js/main.ee990fc8.js.map",
|
||||
"787.4c72bb55.chunk.js.map": "/static/js/787.4c72bb55.chunk.js.map"
|
||||
},
|
||||
"entrypoints": [
|
||||
"static/css/main.60127273.css",
|
||||
"static/js/main.56cc0d38.js"
|
||||
"static/js/main.ee990fc8.js"
|
||||
]
|
||||
}
|
@ -1 +1 @@
|
||||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><script async src="https://www.googletagmanager.com/gtag/js?id=G-RN3FDBLMCR"></script><script>function gtag(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],gtag("js",new Date),gtag("config","G-RN3FDBLMCR")</script><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="A visual programming environment for prompt engineering"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>ChainForge</title><script defer="defer" src="/static/js/main.56cc0d38.js"></script><link href="/static/css/main.60127273.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
|
||||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><script async src="https://www.googletagmanager.com/gtag/js?id=G-RN3FDBLMCR"></script><script>function gtag(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],gtag("js",new Date),gtag("config","G-RN3FDBLMCR")</script><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="A visual programming environment for prompt engineering"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>ChainForge</title><script defer="defer" src="/static/js/main.ee990fc8.js"></script><link href="/static/css/main.60127273.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
7
chainforge/react-server/src/App.js
vendored
7
chainforge/react-server/src/App.js
vendored
@ -170,8 +170,9 @@ const App = () => {
|
||||
}
|
||||
const getViewportCenter = () => {
|
||||
const { centerX, centerY } = getWindowCenter();
|
||||
const { x, y } = rfInstance.getViewport();
|
||||
return ({x: -x+centerX, y:-y+centerY});
|
||||
// Support Zoom
|
||||
const { x, y, zoom } = rfInstance.getViewport();
|
||||
return ({x: -(x / zoom) + (centerX / zoom), y: -(y / zoom) + (centerY / zoom)});
|
||||
}
|
||||
|
||||
const addTextFieldsNode = () => {
|
||||
@ -316,7 +317,7 @@ const App = () => {
|
||||
if (flow) {
|
||||
if (rf_inst) {
|
||||
if (flow.viewport)
|
||||
rf_inst.setViewport({x: flow.viewport.x || 0, y: flow.viewport.y || 0, zoom: 1});
|
||||
rf_inst.setViewport({x: flow.viewport.x || 0, y: flow.viewport.y || 0, zoom: flow.viewport.zoom || 1});
|
||||
else
|
||||
rf_inst.setViewport({x:0, y:0, zoom:1});
|
||||
}
|
||||
|
@ -615,7 +615,7 @@ const HuggingFaceTextInferenceSettings = {
|
||||
"type": "string",
|
||||
"title": "Model",
|
||||
"description": "Select a suggested HuggingFace-hosted model to query using the Inference API. For more details, check out https://huggingface.co/inference-api",
|
||||
"enum": ["tiiuae/falcon-7b-instruct", "microsoft/DialoGPT-large", "bigscience/bloom-560m", "gpt2", "bigcode/santacoder", "bigcode/starcoder", "Other (HuggingFace)"],
|
||||
"enum": ["mistralai/Mistral-7B-Instruct-v0.1", "HuggingFaceH4/zephyr-7b-beta", "tiiuae/falcon-7b-instruct", "microsoft/DialoGPT-large", "bigscience/bloom-560m", "gpt2", "bigcode/santacoder", "bigcode/starcoder", "Other (HuggingFace)"],
|
||||
"default": "tiiuae/falcon-7b-instruct",
|
||||
},
|
||||
"custom_model": {
|
||||
|
@ -55,12 +55,14 @@ export enum NativeLLM {
|
||||
Aleph_Alpha_Luminous_SupremeControl = "luminous-supreme-control",
|
||||
|
||||
// HuggingFace Inference hosted models, suggested to users
|
||||
HF_GPT2 = "gpt2",
|
||||
HF_BLOOM_560M = "bigscience/bloom-560m",
|
||||
HF_MISTRAL_7B_INSTRUCT = "mistralai/Mistral-7B-Instruct-v0.1",
|
||||
HF_ZEPHYR_7B_BETA = "HuggingFaceH4/zephyr-7b-beta",
|
||||
HF_FALCON_7B_INSTRUCT = "tiiuae/falcon-7b-instruct",
|
||||
HF_SANTACODER = "bigcode/santacoder",
|
||||
HF_STARCODER = "bigcode/starcoder",
|
||||
HF_DIALOGPT_LARGE = "microsoft/DialoGPT-large", // chat model
|
||||
HF_GPT2 = "gpt2",
|
||||
HF_BLOOM_560M = "bigscience/bloom-560m",
|
||||
// HF_GPTJ_6B = "EleutherAI/gpt-j-6b",
|
||||
// HF_LLAMA_7B = "decapoda-research/llama-7b-hf",
|
||||
|
||||
@ -141,4 +143,4 @@ export function getEnumName(enumObject: any, enumValue: any): string | undefined
|
||||
if (enumObject[key] === enumValue)
|
||||
return key;
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user