-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
server/llm: first steps towards supporting ollama
- Loading branch information
1 parent
db74cf7
commit fd4a48e
Showing
13 changed files
with
641 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { CSS } from "../app-framework"; | ||
import ollamaPng from "./ollama.png"; | ||
|
||
export default function OllamaAvatar({ | ||
size = 64, | ||
style, | ||
}: { | ||
size: number; | ||
style?: CSS; | ||
}) { | ||
// render the ollamaPng (a square png image with transparent background) with the given size and background color | ||
|
||
return ( | ||
<div | ||
style={{ | ||
width: size, | ||
height: size, | ||
display: "inline-block", | ||
position: "relative", | ||
}} | ||
> | ||
<img | ||
src={ollamaPng} | ||
style={{ | ||
width: size, | ||
height: size, | ||
backgroundColor: "transparent", | ||
...style, | ||
}} | ||
/> | ||
</div> | ||
); | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.