Code Monkey home page Code Monkey logo

Comments (14)

buhe avatar buhe commented on June 5, 2024

HI, Which project did you fail to build, and what was the error?

from langchain-swift.

buhe avatar buhe commented on June 5, 2024

Because SPM uses git tags as versions, 0.7.0 and 0.16.0 are available versions, and 0.16.0 is newer than 0.7.0.

from langchain-swift.

williamrct avatar williamrct commented on June 5, 2024

I am using version 0.16.0 anf the error is LangChain module not found. One notable difference is that you are using LangChain in the Share app for the Share Extension. My use case is slightly different in that I want to use it directly from my app. I declare an NSObject class where I import LangChain. When I build I get the module not found error. In my langchain-swift package the LangChain.swift file only contains:

//
// File.swift
//
//
// Created by ι‘Ύθ‰³εŽ on 2023/6/11.
//

import Foundation

from langchain-swift.

williamrct avatar williamrct commented on June 5, 2024

BTW, thanks for the response much appreciated

from langchain-swift.

williamrct avatar williamrct commented on June 5, 2024

I am trygin to open the Writer project to see how you are using LangChain there but I am getting that you used a future version of xcode... probably beta. Please let me know what version of xcode I can use to view the Writer project. Thanks

from langchain-swift.

buhe avatar buhe commented on June 5, 2024

Sorry, I push writer_public using the local version of langchain-swift. BTW, if there is only one file in the dependent lc-swift you can try to delete and add it again.

from langchain-swift.

buhe avatar buhe commented on June 5, 2024

You can create a blank project and just depend on langchain-swift.

from langchain-swift.

williamrct avatar williamrct commented on June 5, 2024

Thanks ... I am passed the issues I was having after clearing cache and derived data etc.

from langchain-swift.

buhe avatar buhe commented on June 5, 2024

I try vision pro sim, so use

Version 15.0 beta 4 (15A5195m)

FYI
I didn't know that the xcode version also had an impact...

from langchain-swift.

williamrct avatar williamrct commented on June 5, 2024

OK good to know ... thanks

from langchain-swift.

buhe avatar buhe commented on June 5, 2024

Is there anything I can do to help?

from langchain-swift.

williamrct avatar williamrct commented on June 5, 2024

Yes... thank you.... I see the openai is using chatgpt 3.5 turbo... can I use chatgpt 4? I have more questions but this is good for now

from langchain-swift.

williamrct avatar williamrct commented on June 5, 2024

thanks

from langchain-swift.

buhe avatar buhe commented on June 5, 2024

sure,please use version 0.16.0+.

import OpenAIKit

let llm = OpenAI(model: Model.GPT4.gpt4)

from langchain-swift.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.